public class JWTEncryptionPreferences extends Object
Constructor and Description |
---|
JWTEncryptionPreferences() |
Modifier and Type | Method and Description |
---|---|
EncryptionAlgorithm |
getEncryptionAlgorithm()
Returns the type of encryption algorithm for JWT.
|
String |
getPrivateKey()
Returns the private key for generating the JWT signature.
|
IPrivateKeyDecryptor |
getPrivateKeyDecryptor()
Gets a decryptor used for decrypting the private key.
|
String |
getPrivateKeyPassword()
Returns the password for the private key.
|
String |
getPublicKeyID()
Returns the ID for public key for validating the JWT signature.
|
void |
setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
Sets the type of encryption algorithm for JWT.
|
void |
setPrivateKey(String privateKey)
Sets the private key for generating the JWT signature.
|
void |
setPrivateKeyDecryptor(IPrivateKeyDecryptor privateKeyDecryptor)
Sets a custom decryptor used for decrypting the private key.
|
void |
setPrivateKeyPassword(String privateKeyPassword)
Sets the password for the private key.
|
void |
setPublicKeyID(String publicKeyID)
Sets the ID for public key for validating the JWT signature.
|
public JWTEncryptionPreferences()
public String getPublicKeyID()
public void setPublicKeyID(String publicKeyID)
publicKeyID
- the publicKeyID to set.public String getPrivateKey()
public void setPrivateKey(String privateKey)
privateKey
- the privateKey to set.public String getPrivateKeyPassword()
public void setPrivateKeyPassword(String privateKeyPassword)
privateKeyPassword
- the privateKeyPassword to set.public EncryptionAlgorithm getEncryptionAlgorithm()
public void setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
encryptionAlgorithm
- the encryptionAlgorithm to set.public IPrivateKeyDecryptor getPrivateKeyDecryptor()
public void setPrivateKeyDecryptor(IPrivateKeyDecryptor privateKeyDecryptor)
privateKeyDecryptor
- the decryptor used for decrypting the private key.