Class: ActiveRecord::Jwt::EncoderConfiguration
- Inherits:
-
Object
- Object
- ActiveRecord::Jwt::EncoderConfiguration
- Defined in:
- lib/activerecord-jwt/encoder_configuration.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#aud ⇒ Object
Returns the value of attribute aud.
-
#exp ⇒ Object
Returns the value of attribute exp.
-
#iss ⇒ Object
Returns the value of attribute iss.
-
#key ⇒ Object
Returns the value of attribute key.
-
#sub ⇒ Object
Returns the value of attribute sub.
Instance Method Summary collapse
-
#initialize ⇒ EncoderConfiguration
constructor
A new instance of EncoderConfiguration.
Constructor Details
#initialize ⇒ EncoderConfiguration
Returns a new instance of EncoderConfiguration.
5 6 7 8 9 10 11 |
# File 'lib/activerecord-jwt/encoder_configuration.rb', line 5 def initialize self.sub = :id self.algorithm = 'HS256' self.exp = 600 self.iss = 'issuer' self.aud = 'audience' end |
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
3 4 5 |
# File 'lib/activerecord-jwt/encoder_configuration.rb', line 3 def algorithm @algorithm end |
#aud ⇒ Object
Returns the value of attribute aud.
3 4 5 |
# File 'lib/activerecord-jwt/encoder_configuration.rb', line 3 def aud @aud end |
#exp ⇒ Object
Returns the value of attribute exp.
3 4 5 |
# File 'lib/activerecord-jwt/encoder_configuration.rb', line 3 def exp @exp end |
#iss ⇒ Object
Returns the value of attribute iss.
3 4 5 |
# File 'lib/activerecord-jwt/encoder_configuration.rb', line 3 def iss @iss end |
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/activerecord-jwt/encoder_configuration.rb', line 3 def key @key end |
#sub ⇒ Object
Returns the value of attribute sub.
3 4 5 |
# File 'lib/activerecord-jwt/encoder_configuration.rb', line 3 def sub @sub end |