Package de.xima.fc.mdl.token
Class TokenConfiguration
- java.lang.Object
-
- de.xima.fc.mdl.token.TokenConfiguration
-
- All Implemented Interfaces:
Serializable
public class TokenConfiguration extends Object implements Serializable
Configuration for the token generation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TokenConfiguration(String accessTokenSecret, int accessTokenExpireTimeout, String idTokenSecret, int idTokenExpireTimeout, int refreshTokenExpireTimeout)
Creates a new token configuration with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAccessTokenExpireTimeout()
Returns the time in seconds until the access token expires.String
getAccessTokenSecret()
Returns the secret to use for the access token.int
getIdTokenExpireTimeout()
Returns the time in seconds until the id token expires.String
getIdTokenSecret()
Returns the secret to use for the id token.int
getRefreshTokenExpireTimeout()
Returns the time in seconds until the refresh token expires.com.nimbusds.jose.JWSAlgorithm
getSignAlgorithm()
Returns the sign algorithm.
-
-
-
Constructor Detail
-
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 Detail
-
getAccessTokenSecret
public String 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
public String 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.
-
-