Class: LiveIdentity::IDCRL::Structs::IDCRL_STATUS_V1

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/live_identity/idcrl/structs.rb

Instance Method Summary collapse

Instance Method Details

#AuthRequiredObject



32
33
34
# File 'lib/live_identity/idcrl/structs.rb', line 32

def AuthRequired
    self[:hrAuthRequired]
end

#AuthStateObject



28
29
30
# File 'lib/live_identity/idcrl/structs.rb', line 28

def AuthState
    self[:hrAuthState]
end

#IsAuthenticated?Boolean

Returns:

  • (Boolean)


55
56
57
# File 'lib/live_identity/idcrl/structs.rb', line 55

def IsAuthenticated?
    RequestStatus() >= 0 && AuthState() >= 0
end

#RequestStatusObject



36
37
38
# File 'lib/live_identity/idcrl/structs.rb', line 36

def RequestStatus
    self[:hrRequestStatus]
end

#to_sObject



49
50
51
52
53
# File 'lib/live_identity/idcrl/structs.rb', line 49

def to_s
    "AuthState:     #{WinCommon::Errors::HRESULT::GetNameCode(AuthState())}\n" +
    "AuthRequired:  #{WinCommon::Errors::HRESULT::GetNameCode(AuthRequired())}\n" +
    "RequestStatus: #{WinCommon::Errors::HRESULT::GetNameCode(RequestStatus())}"
end

#WebFlowUrlObject



40
41
42
# File 'lib/live_identity/idcrl/structs.rb', line 40

def WebFlowUrl
    @WebFlowUrl ||= read_wide_string(self[:wszWebFlowUrl])
end

#WebFlowUrl=(webFlowUrl) ⇒ Object



44
45
46
47
# File 'lib/live_identity/idcrl/structs.rb', line 44

def WebFlowUrl= (webFlowUrl)
    @WebFlowUrl = webFlowUrl
    self[:wszWebFlowUrl] = StringToWSTR(webFlowUrl)
end