Class: Win32::SSPI::SSPIResult
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/win32/lib/win32/sspi.rb |
Overview
Takes a return result from an ::Win32::SSPI
function and interprets the value.
Constant Summary
-
SEC_E_INSUFFICIENT_MEMORY =
These are generally returned by InitializeSecurityContext
0x80090300
-
SEC_E_INTERNAL_ERROR =
# File 'ext/win32/lib/win32/sspi.rb', line 1620x80090304
-
SEC_E_INVALID_HANDLE =
# File 'ext/win32/lib/win32/sspi.rb', line 1630x80090301
-
SEC_E_INVALID_TOKEN =
# File 'ext/win32/lib/win32/sspi.rb', line 1640x80090308
-
SEC_E_LOGON_DENIED =
# File 'ext/win32/lib/win32/sspi.rb', line 1650x8009030C
-
SEC_E_NOT_OWNER =
These are generally returned by AcquireCredentialsHandle
0x80090306
-
SEC_E_NO_AUTHENTICATING_AUTHORITY =
# File 'ext/win32/lib/win32/sspi.rb', line 1660x80090311
-
SEC_E_NO_CREDENTIALS =
# File 'ext/win32/lib/win32/sspi.rb', line 1670x8009030E
-
SEC_E_OK =
Good results
0x00000000
-
SEC_E_SECPKG_NOT_FOUND =
# File 'ext/win32/lib/win32/sspi.rb', line 1740x80090305
-
SEC_E_TARGET_UNKNOWN =
# File 'ext/win32/lib/win32/sspi.rb', line 1680x80090303
-
SEC_E_UNKNOWN_CREDENTIALS =
# File 'ext/win32/lib/win32/sspi.rb', line 1750x8009030D
-
SEC_E_UNSUPPORTED_FUNCTION =
# File 'ext/win32/lib/win32/sspi.rb', line 1690x80090302
-
SEC_E_WRONG_PRINCIPAL =
# File 'ext/win32/lib/win32/sspi.rb', line 1700x80090322
-
SEC_I_CONTINUE_NEEDED =
# File 'ext/win32/lib/win32/sspi.rb', line 1580x00090312
Class Method Summary
- .new(value) ⇒ SSPIResult constructor
Instance Attribute Summary
- #ok? ⇒ Boolean readonly
- #value readonly
Instance Method Summary
Constructor Details
.new(value) ⇒ SSPIResult
Instance Attribute Details
#ok? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'ext/win32/lib/win32/sspi.rb', line 193
def ok? @value == SEC_I_CONTINUE_NEEDED || @value == SEC_E_OK end
#value (readonly)
[ GitHub ]# File 'ext/win32/lib/win32/sspi.rb', line 180
attr_reader :value
Instance Method Details
#==(other)
[ GitHub ]# File 'ext/win32/lib/win32/sspi.rb', line 197
def ==(other) if other.is_a?(SSPIResult) @value == other.value elsif other.is_a?(Fixnum) @value == @@map[other] else false end end
#to_s
[ GitHub ]# File 'ext/win32/lib/win32/sspi.rb', line 189
def to_s @@map[@value].to_s end