@ConfigurationProperties(value="micronaut.security.token.jwt.generator") public class JwtGeneratorConfigurationProperties extends java.lang.Object implements JwtGeneratorConfiguration
JwtGeneratorConfiguration
implementation.Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
DEFAULT_EXPIRATION
The default expiration.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
JwtGeneratorConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getAccessTokenExpiration()
If not specified, defaults to
DEFAULT_EXPIRATION . |
java.lang.Integer |
getRefreshTokenExpiration()
How long until the refresh token expires in seconds.
|
void |
setAccessTokenExpiration(java.lang.Integer accessTokenExpiration)
Access token expiration.
|
void |
setRefreshTokenExpiration(java.lang.Integer refreshTokenExpiration)
Refresh token expiration.
|
public static final java.lang.String PREFIX
public static final java.lang.Integer DEFAULT_EXPIRATION
public java.lang.Integer getRefreshTokenExpiration()
JwtGeneratorConfiguration
getRefreshTokenExpiration
in interface JwtGeneratorConfiguration
public java.lang.Integer getAccessTokenExpiration()
DEFAULT_EXPIRATION
.getAccessTokenExpiration
in interface JwtGeneratorConfiguration
public void setRefreshTokenExpiration(java.lang.Integer refreshTokenExpiration)
refreshTokenExpiration
- The expirationpublic void setAccessTokenExpiration(java.lang.Integer accessTokenExpiration)
accessTokenExpiration
- The expiration