Class
Takes a return result from an SSPI
function and interprets the value.
Constants
Good results
No documentation available
These are generally returned by InitializeSecurityContext
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
These are generally returned by AcquireCredentialsHandle
No documentation available
No documentation available
Attributes
Read
No documentation available
Class Methods
::
ext/win32/lib/win32/sspi.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/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
No documentation available
Instance Methods
ext/win32/lib/win32/sspi.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/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
No documentation available
#
ext/win32/lib/win32/sspi.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/ext/win32/lib/win32/sspi.rb, line 200
def ok?
@value == SEC_I_CONTINUE_NEEDED || @value == SEC_E_OK
end
No documentation available
#
ext/win32/lib/win32/sspi.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/ext/win32/lib/win32/sspi.rb, line 196
def to_s
@@map[@value].to_s
end
No documentation available