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:
  • 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

      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.