public class RSAEncryptionConfiguration extends AbstractEncryptionConfiguration
algorithm, method
Constructor and Description |
---|
RSAEncryptionConfiguration() |
RSAEncryptionConfiguration(KeyPair keyPair) |
RSAEncryptionConfiguration(KeyPair keyPair,
com.nimbusds.jose.JWEAlgorithm algorithm,
com.nimbusds.jose.EncryptionMethod method) |
Modifier and Type | Method and Description |
---|---|
protected com.nimbusds.jose.JWEDecrypter |
buildDecrypter()
Build the appropriate decrypter.
|
protected com.nimbusds.jose.JWEEncrypter |
buildEncrypter()
Build the appropriate encrypter.
|
RSAPrivateKey |
getPrivateKey() |
RSAPublicKey |
getPublicKey() |
protected void |
internalInit()
Internal initialization of the object.
|
void |
setKeyPair(KeyPair keyPair) |
void |
setPrivateKey(RSAPrivateKey privateKey) |
void |
setPublicKey(RSAPublicKey publicKey) |
boolean |
supports(com.nimbusds.jose.JWEAlgorithm algorithm,
com.nimbusds.jose.EncryptionMethod method)
Whether this encryption configuration supports this algorithm and encryption method.
|
String |
toString() |
decrypt, encrypt, getAlgorithm, getMethod, setAlgorithm, setMethod
init, reinit
public RSAEncryptionConfiguration()
public RSAEncryptionConfiguration(KeyPair keyPair)
public RSAEncryptionConfiguration(KeyPair keyPair, com.nimbusds.jose.JWEAlgorithm algorithm, com.nimbusds.jose.EncryptionMethod method)
public boolean supports(com.nimbusds.jose.JWEAlgorithm algorithm, com.nimbusds.jose.EncryptionMethod method)
EncryptionConfiguration
algorithm
- the encryption algorithmmethod
- the encryption methodprotected void internalInit()
InitializableObject
internalInit
in class InitializableObject
protected com.nimbusds.jose.JWEEncrypter buildEncrypter()
AbstractEncryptionConfiguration
buildEncrypter
in class AbstractEncryptionConfiguration
protected com.nimbusds.jose.JWEDecrypter buildDecrypter()
AbstractEncryptionConfiguration
buildDecrypter
in class AbstractEncryptionConfiguration
public void setKeyPair(KeyPair keyPair)
public RSAPublicKey getPublicKey()
public void setPublicKey(RSAPublicKey publicKey)
public RSAPrivateKey getPrivateKey()
public void setPrivateKey(RSAPrivateKey privateKey)
Copyright © 2017. All rights reserved.