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
-
-
Constructor Summary
Constructors Constructor Description JwtTokenHandlerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
EncryptionMethod
getEncryptionMethod()
Gets the encryption method.JweAlgorithm
getJweAlgorithm()
Gets the jwe algorithm.JwsAlgorithm
getJwsAlgorithm()
Gets the jws algorithm.String
getKeyPairAlgorithm()
Gets the key pair algorithm.int
getKeyPairSize()
Gets the key pair size.long
getTokenLifeTimeInSeconds()
Gets the token life time.String
getType()
Gets token handler type.int
hashCode()
JwtTokenHandlerConfig
setEncryptionMethod(EncryptionMethod encryptionMethod)
Set the encryption method.JwtTokenHandlerConfig
setJweAlgorithm(JweAlgorithm jweAlgorithm)
Set the Jwe algorithm.JwtTokenHandlerConfig
setJwsAlgorithm(JwsAlgorithm jwsAlgorithm)
Set the Jws algorithm.JwtTokenHandlerConfig
setKeyPairAlgorithm(String keyPairAlgorithm)
Set the key pair algorithm.JwtTokenHandlerConfig
setKeyPairSize(int keyPairSize)
Set the key pair size..JwtTokenHandlerConfig
setTokenLifeTimeInSeconds(long tokenLifeTimeInSeconds)
Set the token life (seconds).
-
-
-
Field Detail
-
TYPE
public static final String TYPE
Type of the token handler.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
Gets token handler type.- Specified by:
getType
in interfaceSnapshotTokenConfig
- 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
-
-