public abstract class AbstractEncryptionConfiguration extends java.lang.Object implements EncryptionConfiguration
| Modifier and Type | Field and Description | 
|---|---|
| protected com.nimbusds.jose.JWEAlgorithm | algorithm | 
| protected com.nimbusds.jose.EncryptionMethod | method | 
| Constructor and Description | 
|---|
| AbstractEncryptionConfiguration() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract com.nimbusds.jose.JWEDecrypter | buildDecrypter()Build the appropriate decrypter. | 
| protected abstract com.nimbusds.jose.JWEEncrypter | buildEncrypter()Build the appropriate encrypter. | 
| void | decrypt(com.nimbusds.jwt.EncryptedJWT encryptedJWT)Decrypt an encrypted JWT. | 
| java.lang.String | encrypt(com.nimbusds.jwt.JWT jwt)Encrypt a JWT. | 
| com.nimbusds.jose.JWEAlgorithm | getAlgorithm()algorithm Getter. | 
| com.nimbusds.jose.EncryptionMethod | getMethod()method Getter. | 
| void | setAlgorithm(com.nimbusds.jose.JWEAlgorithm algorithm)algorithm Setter. | 
| void | setMethod(com.nimbusds.jose.EncryptionMethod method)method Setter. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportedAlgorithmsMessage, supportsprotected com.nimbusds.jose.JWEAlgorithm algorithm
protected com.nimbusds.jose.EncryptionMethod method
public java.lang.String encrypt(com.nimbusds.jwt.JWT jwt)
                         throws com.nimbusds.jose.JOSEException,
                                java.text.ParseException
EncryptionConfigurationencrypt in interface EncryptionConfigurationjwt - the JWTcom.nimbusds.jose.JOSEException - exception when encrypting JWTjava.text.ParseException - exception when encrypting JWTprotected abstract com.nimbusds.jose.JWEEncrypter buildEncrypter()
                                                          throws com.nimbusds.jose.JOSEException
com.nimbusds.jose.JOSEException - could be thrown while building encrypter if configuration is invalidpublic void decrypt(com.nimbusds.jwt.EncryptedJWT encryptedJWT)
             throws com.nimbusds.jose.JOSEException
EncryptionConfigurationdecrypt in interface EncryptionConfigurationencryptedJWT - the encrypted JWTcom.nimbusds.jose.JOSEException - exception when decrypting the JWTprotected abstract com.nimbusds.jose.JWEDecrypter buildDecrypter()
                                                          throws com.nimbusds.jose.JOSEException
com.nimbusds.jose.JOSEException - could be thrown while building decrypter if configuration is invalidpublic com.nimbusds.jose.JWEAlgorithm getAlgorithm()
JWEAlgorithmpublic void setAlgorithm(com.nimbusds.jose.JWEAlgorithm algorithm)
algorithm - Instance of JWEAlgorithmpublic com.nimbusds.jose.EncryptionMethod getMethod()
EncryptionMethodpublic void setMethod(com.nimbusds.jose.EncryptionMethod method)
method - Instance of EncryptionMethod