Class JwtTokenHandlerConfig

java.lang.Object
org.forgerock.selfservice.stages.tokenhandlers.JwtTokenHandlerConfig
All Implemented Interfaces:
SnapshotTokenConfig

public final class JwtTokenHandlerConfig extends Object implements SnapshotTokenConfig
Configuration for a JwtTokenHandler.
Since:
0.2.0
  • Field Details

  • Constructor Details

    • JwtTokenHandlerConfig

      public JwtTokenHandlerConfig()
  • Method Details

    • getType

      public String getType()
      Gets token handler type.
      Specified by:
      getType in interface SnapshotTokenConfig
      Returns:
      the type
    • getKeyPairAlgorithm

      public String getKeyPairAlgorithm()
      Gets the key pair algorithm.
      Returns:
      the key pair algorithm
    • getKeyPairSize

      public int getKeyPairSize()
      Gets the key pair size.
      Returns:
      the key pair size
    • getJweAlgorithm

      public JweAlgorithm getJweAlgorithm()
      Gets the jwe algorithm.
      Returns:
      the jwe algorithm
    • getEncryptionMethod

      public EncryptionMethod getEncryptionMethod()
      Gets the encryption method.
      Returns:
      the encryption method
    • getJwsAlgorithm

      public JwsAlgorithm getJwsAlgorithm()
      Gets the jws algorithm.
      Returns:
      the jws algorithm
    • getTokenLifeTimeInSeconds

      public long getTokenLifeTimeInSeconds()
      Gets the token life time.
      Returns:
      the token life time in seconds
    • setKeyPairAlgorithm

      public JwtTokenHandlerConfig setKeyPairAlgorithm(String keyPairAlgorithm)
      Set the key pair algorithm.
      Parameters:
      keyPairAlgorithm - the key pair algorithm
      Returns:
      this config instance
    • setKeyPairSize

      public JwtTokenHandlerConfig setKeyPairSize(int keyPairSize)
      Set the key pair size..
      Parameters:
      keyPairSize - the key pair size
      Returns:
      this config instance
    • setJweAlgorithm

      public JwtTokenHandlerConfig setJweAlgorithm(JweAlgorithm jweAlgorithm)
      Set the Jwe algorithm.
      Parameters:
      jweAlgorithm - the JweAlgorithm
      Returns:
      this config instance
    • setEncryptionMethod

      public JwtTokenHandlerConfig setEncryptionMethod(EncryptionMethod encryptionMethod)
      Set the encryption method.
      Parameters:
      encryptionMethod - the encrpytion method
      Returns:
      this config instance
    • setJwsAlgorithm

      public JwtTokenHandlerConfig setJwsAlgorithm(JwsAlgorithm jwsAlgorithm)
      Set the Jws algorithm.
      Parameters:
      jwsAlgorithm - the JwsAlgorithm
      Returns:
      this config instance
    • setTokenLifeTimeInSeconds

      public JwtTokenHandlerConfig setTokenLifeTimeInSeconds(long tokenLifeTimeInSeconds)
      Set the token life (seconds).
      Parameters:
      tokenLifeTimeInSeconds - the token life
      Returns:
      this config instance
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object