Class AccessTokenConfigurationProperties
java.lang.Object
io.micronaut.security.token.generator.AccessTokenConfigurationProperties
- All Implemented Interfaces:
AccessTokenConfiguration
@ConfigurationProperties("micronaut.security.token.generator.access-token")
public class AccessTokenConfigurationProperties
extends Object
implements AccessTokenConfiguration
Access token configuration.
- Since:
- 2.0.0
- Author:
- James Kleeh
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull Integer
void
setExpiration
(Integer expiration) Access token expiration.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_EXPIRATION
public static final int DEFAULT_EXPIRATIONThe default expiration.- See Also:
-
-
Constructor Details
-
AccessTokenConfigurationProperties
public AccessTokenConfigurationProperties()
-
-
Method Details
-
getExpiration
- Specified by:
getExpiration
in interfaceAccessTokenConfiguration
- Returns:
- The number of seconds until the access token expires.
-
setExpiration
Access token expiration. Default value (3600).- Parameters:
expiration
- The expiration
-