10Duke Scale SDK for Java
|
Base class for 10Duke SDK implementations of JWT building.
Protected Member Functions | |
String | buildToken () |
Builds a JWT token with claims assembled in addAllClaims(Map<String, Object>) . | |
void | addAllClaims (final Map< String, Object > claims) |
Adds all JWT claims to map as part of build JWT process. | |
void | addStandardClaims (final Map< String, Object > claims) |
Adds jti , iat , iss and exp JWT claims to map as part of build JWT process. | |
void | addCustomClaims (final Map< String, Object > claims) |
JWT build phase for adding custom claims. | |
long | calculateExpiration () |
Returns the effective expiration to be used in tokens. | |
long | defaultExpiration () |
Returns value of the default expiration for tokens. | |
|
protected |
Adds all JWT claims to map as part of build JWT process.
Implementation is split into phases: addStandardClaims(Map<String, Object>)
and addCustomClaims(Map<String, Object>)
.
claims | Map to add claims to. |
|
protected |
JWT build phase for adding custom claims.
claims | The claims map to add custom claims into. |
Reimplemented in tenduke.scale.api.ScaleJwtAuthorizationProvider.
|
protected |
Adds jti
, iat
, iss
and exp
JWT claims to map as part of build JWT process.
claims | Map to add claims to. |
|
protected |
Builds a JWT token with claims assembled in addAllClaims(Map<String, Object>)
.
addAllClaims(Map<String, Object>)
.
|
protected |
Returns the effective expiration to be used in tokens.
Expiration value is relative to current epoch seconds.
|
protected |
Returns value of the default expiration for tokens.
Expiration value is relative to current epoch seconds.