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