Class: LiveIdentity::IDCRL::Structs::IDCRL_STATUS_V1
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- LiveIdentity::IDCRL::Structs::IDCRL_STATUS_V1
- Defined in:
- lib/live_identity/idcrl/structs.rb
Instance Method Summary collapse
- #AuthRequired ⇒ Object
- #AuthState ⇒ Object
- #IsAuthenticated? ⇒ Boolean
- #RequestStatus ⇒ Object
- #to_s ⇒ Object
- #WebFlowUrl ⇒ Object
- #WebFlowUrl=(webFlowUrl) ⇒ Object
Instance Method Details
#AuthRequired ⇒ Object
32 33 34 |
# File 'lib/live_identity/idcrl/structs.rb', line 32 def AuthRequired self[:hrAuthRequired] end |
#AuthState ⇒ Object
28 29 30 |
# File 'lib/live_identity/idcrl/structs.rb', line 28 def AuthState self[:hrAuthState] end |
#IsAuthenticated? ⇒ Boolean
55 56 57 |
# File 'lib/live_identity/idcrl/structs.rb', line 55 def IsAuthenticated? RequestStatus() >= 0 && AuthState() >= 0 end |
#RequestStatus ⇒ Object
36 37 38 |
# File 'lib/live_identity/idcrl/structs.rb', line 36 def RequestStatus self[:hrRequestStatus] end |
#to_s ⇒ Object
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 |
#WebFlowUrl ⇒ Object
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 |