類別 Win32::SSPI::SSPIResult
取得 SSPI
函式的回傳結果並詮釋其值。
常數
- SEC_E_INSUFFICIENT_MEMORY
通常由 InitializeSecurityContext 回傳
- SEC_E_INTERNAL_ERROR
- SEC_E_INVALID_HANDLE
- SEC_E_INVALID_TOKEN
- SEC_E_LOGON_DENIED
- SEC_E_NOT_OWNER
通常由 AcquireCredentialsHandle 回傳
- SEC_E_NO_AUTHENTICATING_AUTHORITY
- SEC_E_NO_CREDENTIALS
- SEC_E_OK
良好的結果
- SEC_E_SECPKG_NOT_FOUND
- SEC_E_TARGET_UNKNOWN
- SEC_E_UNKNOWN_CREDENTIALS
- SEC_E_UNSUPPORTED_FUNCTION
- SEC_E_WRONG_PRINCIPAL
- SEC_I_CONTINUE_NEEDED
屬性
value[R]
公開類別方法
new(value) 按一下以切換來源
# File ext/win32/lib/win32/sspi.rb, line 189 def initialize(value) # convert to unsigned long value = [value].pack("L").unpack("L").first raise "#{value.to_s(16)} is not a recognized result" unless @@map.has_key? value @value = value end
公開實例方法
==(other) 按一下以切換來源
# File ext/win32/lib/win32/sspi.rb, line 204 def ==(other) if other.is_a?(SSPIResult) @value == other.value elsif other.is_a?(Fixnum) @value == @@map[other] else false end end
ok?() 按一下以切換來源
# File ext/win32/lib/win32/sspi.rb, line 200 def ok? @value == SEC_I_CONTINUE_NEEDED || @value == SEC_E_OK end
to_s() 按一下以切換來源
# File ext/win32/lib/win32/sspi.rb, line 196 def to_s @@map[@value].to_s end