Class JwtTokenHandlerConfig
java.lang.Object
org.forgerock.selfservice.stages.tokenhandlers.JwtTokenHandlerConfig
- All Implemented Interfaces:
SnapshotTokenConfig
Configuration for a JwtTokenHandler.
- Since:
- 0.2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the encryption method.Gets the jwe algorithm.Gets the jws algorithm.Gets the key pair algorithm.intGets the key pair size.longGets the token life time.getType()Gets token handler type.inthashCode()setEncryptionMethod(EncryptionMethod encryptionMethod) Set the encryption method.setJweAlgorithm(JweAlgorithm jweAlgorithm) Set the Jwe algorithm.setJwsAlgorithm(JwsAlgorithm jwsAlgorithm) Set the Jws algorithm.setKeyPairAlgorithm(String keyPairAlgorithm) Set the key pair algorithm.setKeyPairSize(int keyPairSize) Set the key pair size..setTokenLifeTimeInSeconds(long tokenLifeTimeInSeconds) Set the token life (seconds).
-
Field Details
-
TYPE
Type of the token handler.- See Also:
-
-
Constructor Details
-
JwtTokenHandlerConfig
public JwtTokenHandlerConfig()
-
-
Method Details
-
getType
Gets token handler type.- Specified by:
getTypein interfaceSnapshotTokenConfig- Returns:
- the type
-
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
Gets the jwe algorithm.- Returns:
- the jwe algorithm
-
getEncryptionMethod
Gets the encryption method.- Returns:
- the encryption method
-
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
Set the key pair algorithm.- Parameters:
keyPairAlgorithm- the key pair algorithm- Returns:
- this config instance
-
setKeyPairSize
Set the key pair size..- Parameters:
keyPairSize- the key pair size- Returns:
- this config instance
-
setJweAlgorithm
Set the Jwe algorithm.- Parameters:
jweAlgorithm- the JweAlgorithm- Returns:
- this config instance
-
setEncryptionMethod
Set the encryption method.- Parameters:
encryptionMethod- the encrpytion method- Returns:
- this config instance
-
setJwsAlgorithm
Set the Jws algorithm.- Parameters:
jwsAlgorithm- the JwsAlgorithm- Returns:
- this config instance
-
setTokenLifeTimeInSeconds
Set the token life (seconds).- Parameters:
tokenLifeTimeInSeconds- the token life- Returns:
- this config instance
-
equals
-
hashCode
public int hashCode()
-