Class: Keycloak_FFI::KeycloakTokens

Inherits:
FFI::ManagedStruct
  • Object
show all
Defined in:
lib/libkeycloak.rb

Class Method Summary collapse

Instance Method Summary collapse

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_tokenObject



115
116
117
# File 'lib/libkeycloak.rb', line 115

def access_token
  return self[:access_token]
end

#not_before_policyObject



127
128
129
# File 'lib/libkeycloak.rb', line 127

def not_before_policy
  return self[:not_before_policy]
end

#refresh_tokenObject



119
120
121
# File 'lib/libkeycloak.rb', line 119

def refresh_token
  return self[:refresh_token]
end

#scopeObject



135
136
137
# File 'lib/libkeycloak.rb', line 135

def scope
  return self[:scope]
end

#scopesObject



139
140
141
# File 'lib/libkeycloak.rb', line 139

def scopes
  return self.scope.split " "
end

#session_stateObject



131
132
133
# File 'lib/libkeycloak.rb', line 131

def session_state
  return self[:session_state]
end

#token_typeObject



123
124
125
# File 'lib/libkeycloak.rb', line 123

def token_type
  return self[:token_type]
end