Class: Keycloak_FFI::KeycloakTokens
- Inherits:
-
FFI::ManagedStruct
- Object
- FFI::ManagedStruct
- Keycloak_FFI::KeycloakTokens
- Defined in:
- lib/libkeycloak.rb
Class Method Summary collapse
Instance Method Summary collapse
- #access_token ⇒ Object
- #not_before_policy ⇒ Object
- #refresh_token ⇒ Object
- #scope ⇒ Object
- #scopes ⇒ Object
- #session_state ⇒ Object
- #token_type ⇒ Object
Class Method Details
.release(ptr) ⇒ Object
108 109 110 111 112 113 |
# File 'lib/libkeycloak.rb', line 108 def self.release ptr unless ptr.nil? Keycloak_FFI.keycloak_destroy_tokens(ptr) FFI::LibC.free(ptr) end end |
Instance Method Details
#access_token ⇒ Object
115 116 117 |
# File 'lib/libkeycloak.rb', line 115 def access_token return self[:access_token] end |
#not_before_policy ⇒ Object
127 128 129 |
# File 'lib/libkeycloak.rb', line 127 def not_before_policy return self[:not_before_policy] end |
#refresh_token ⇒ Object
119 120 121 |
# File 'lib/libkeycloak.rb', line 119 def refresh_token return self[:refresh_token] end |
#scope ⇒ Object
135 136 137 |
# File 'lib/libkeycloak.rb', line 135 def scope return self[:scope] end |
#scopes ⇒ Object
139 140 141 |
# File 'lib/libkeycloak.rb', line 139 def scopes return self.scope.split " " end |
#session_state ⇒ Object
131 132 133 |
# File 'lib/libkeycloak.rb', line 131 def session_state return self[:session_state] end |
#token_type ⇒ Object
123 124 125 |
# File 'lib/libkeycloak.rb', line 123 def token_type return self[:token_type] end |