public final class JwtTokenHandlerConfig extends Object implements SnapshotTokenConfig
Modifier and Type | Field and Description |
---|---|
static String |
TYPE
Type of the token handler.
|
Constructor and Description |
---|
JwtTokenHandlerConfig() |
Modifier and Type | Method and 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.
|
byte[] |
getSharedKey()
Gets the shared key.
|
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 |
setSharedKey(String sharedKey)
Set the shared key.
|
JwtTokenHandlerConfig |
setTokenLifeTimeInSeconds(long tokenLifeTimeInSeconds)
Set the token life (seconds).
|
public static final String TYPE
public String getType()
getType
in interface SnapshotTokenConfig
public byte[] getSharedKey()
public String getKeyPairAlgorithm()
public int getKeyPairSize()
public JweAlgorithm getJweAlgorithm()
public EncryptionMethod getEncryptionMethod()
public JwsAlgorithm getJwsAlgorithm()
public long getTokenLifeTimeInSeconds()
public JwtTokenHandlerConfig setSharedKey(String sharedKey)
sharedKey
- the shared keypublic JwtTokenHandlerConfig setKeyPairAlgorithm(String keyPairAlgorithm)
keyPairAlgorithm
- the key pair algorithmpublic JwtTokenHandlerConfig setKeyPairSize(int keyPairSize)
keyPairSize
- the key pair sizepublic JwtTokenHandlerConfig setJweAlgorithm(JweAlgorithm jweAlgorithm)
jweAlgorithm
- the JweAlgorithmpublic JwtTokenHandlerConfig setEncryptionMethod(EncryptionMethod encryptionMethod)
encryptionMethod
- the encrpytion methodpublic JwtTokenHandlerConfig setJwsAlgorithm(JwsAlgorithm jwsAlgorithm)
jwsAlgorithm
- the JwsAlgorithmpublic JwtTokenHandlerConfig setTokenLifeTimeInSeconds(long tokenLifeTimeInSeconds)
tokenLifeTimeInSeconds
- the token lifeCopyright © 2010-2018, ForgeRock All Rights Reserved.