Class TokenConfiguration
java.lang.Object
de.xima.fc.mdl.token.TokenConfiguration
- All Implemented Interfaces:
Serializable
Configuration for the token generation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTokenConfiguration(String accessTokenSecret, int accessTokenExpireTimeout, String idTokenSecret, int idTokenExpireTimeout, int refreshTokenExpireTimeout) Creates a new token configuration with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the time in seconds until the access token expires.Returns the secret to use for the access token.intReturns the time in seconds until the id token expires.Returns the secret to use for the id token.intReturns the time in seconds until the refresh token expires.com.nimbusds.jose.JWSAlgorithmReturns the sign algorithm.
-
Constructor Details
-
TokenConfiguration
public TokenConfiguration(String accessTokenSecret, int accessTokenExpireTimeout, String idTokenSecret, int idTokenExpireTimeout, int refreshTokenExpireTimeout) Creates a new token configuration with the given parameters.- Parameters:
accessTokenSecret- The secret to use for the access token.accessTokenExpireTimeout- The time in minutes until the access token expires.idTokenSecret- The secret to use for the id token.idTokenExpireTimeout- The time in minutes until the id token expires.refreshTokenExpireTimeout- The time in minutes until the refresh token expires.
-
-
Method Details
-
getAccessTokenSecret
Returns the secret to use for the access token.- Returns:
- The secret to use for the access token.
-
getAccessTokenExpireTimeout
public int getAccessTokenExpireTimeout()Returns the time in seconds until the access token expires.- Returns:
- The time in seconds until the access token expires.
-
getIdTokenSecret
Returns the secret to use for the id token.- Returns:
- The secret to use for the id token.
-
getIdTokenExpireTimeout
public int getIdTokenExpireTimeout()Returns the time in seconds until the id token expires.- Returns:
- The time in seconds until the id token expires.
-
getRefreshTokenExpireTimeout
public int getRefreshTokenExpireTimeout()Returns the time in seconds until the refresh token expires.- Returns:
- The time in seconds until the refresh token expires.
-
getSignAlgorithm
public com.nimbusds.jose.JWSAlgorithm getSignAlgorithm()Returns the sign algorithm.- Returns:
- The sign algorithm.
-