Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • dl/win32/lib/win32/sspi.rb

Parent

Methods

Win32::SSPI::SSPIResult

Takes a return result from an SSPI function and interprets the value.

Attributes

value[R]

Public Class Methods

new(value) click to toggle source
 
               # File dl/win32/lib/win32/sspi.rb, line 181
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
            

Public Instance Methods

==(other) click to toggle source
 
               # File dl/win32/lib/win32/sspi.rb, line 196
def ==(other)
        if other.is_a?(SSPIResult)
                @value == other.value
        elsif other.is_a?(Fixnum)
                @value == @@map[other]
        else
                false
        end
end
            
ok?() click to toggle source
 
               # File dl/win32/lib/win32/sspi.rb, line 192
def ok?
        @value == SEC_I_CONTINUE_NEEDED || @value == SEC_E_OK
end
            
to_s() click to toggle source
 
               # File dl/win32/lib/win32/sspi.rb, line 188
def to_s
        @@map[@value].to_s
end