Class: Keycloak::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/keycloak/token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Token

Returns a new instance of Token.



5
6
7
8
9
# File 'lib/keycloak/token.rb', line 5

def initialize(options = {})
  options.each do |k, v|
    self.send("#{k}=", v)
  end
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



3
4
5
# File 'lib/keycloak/token.rb', line 3

def access_token
  @access_token
end

#expires_inObject

Returns the value of attribute expires_in.



3
4
5
# File 'lib/keycloak/token.rb', line 3

def expires_in
  @expires_in
end

#not_before_policyObject

Returns the value of attribute not_before_policy.



3
4
5
# File 'lib/keycloak/token.rb', line 3

def not_before_policy
  @not_before_policy
end

#refresh_expires_inObject

Returns the value of attribute refresh_expires_in.



3
4
5
# File 'lib/keycloak/token.rb', line 3

def refresh_expires_in
  @refresh_expires_in
end

#refresh_tokenObject

Returns the value of attribute refresh_token.



3
4
5
# File 'lib/keycloak/token.rb', line 3

def refresh_token
  @refresh_token
end

#scopeObject

Returns the value of attribute scope.



3
4
5
# File 'lib/keycloak/token.rb', line 3

def scope
  @scope
end

#session_stateObject

Returns the value of attribute session_state.



3
4
5
# File 'lib/keycloak/token.rb', line 3

def session_state
  @session_state
end

#token_typeObject

Returns the value of attribute token_type.



3
4
5
# File 'lib/keycloak/token.rb', line 3

def token_type
  @token_type
end