Class: Onlyoffice::DocsIntegrationSdk::Jwt::ExpClaim
- Inherits:
-
Object
- Object
- Onlyoffice::DocsIntegrationSdk::Jwt::ExpClaim
- Extended by:
- T::Sig
- Includes:
- Claim
- Defined in:
- lib/onlyoffice/docs_integration_sdk/jwt.rb
Overview
ExpClaim is a claim that represents the expiration time of a JWT.
Instance Attribute Summary collapse
-
#leeway ⇒ Integer
readonly
leeway is the time allowed to account for clock skew, measured in seconds.
-
#ttl ⇒ Integer
readonly
ttl is the time allowed for the token to be valid, measured in seconds.
Instance Method Summary collapse
-
#initialize(ttl: 300, leeway: 30) ⇒ void
constructor
initialize initializes a new ExpClaim instance.
Constructor Details
#initialize(ttl: 300, leeway: 30) ⇒ void
initialize initializes a new ExpClaim instance.
173 174 175 176 |
# File 'lib/onlyoffice/docs_integration_sdk/jwt.rb', line 173 def initialize(ttl: 300, leeway: 30) @ttl = ttl @leeway = leeway end |
Instance Attribute Details
#leeway ⇒ Integer (readonly)
leeway is the time allowed to account for clock skew, measured in seconds.
162 163 164 |
# File 'lib/onlyoffice/docs_integration_sdk/jwt.rb', line 162 def leeway @leeway end |
#ttl ⇒ Integer (readonly)
ttl is the time allowed for the token to be valid, measured in seconds.
155 156 157 |
# File 'lib/onlyoffice/docs_integration_sdk/jwt.rb', line 155 def ttl @ttl end |