Class AbstractJweDecryption
java.lang.Object
org.apache.cxf.rs.security.jose.jwe.AbstractJweDecryption
- All Implemented Interfaces:
JweDecryptionProvider,JweKeyProperties
- Direct Known Subclasses:
JweDecryption
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJweDecryption(KeyDecryptionProvider keyDecryptionAlgo, ContentDecryptionProvider contentDecryptionAlgo) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decrypt(JweDecryptionInput jweDecryptionInput) protected JweDecryptionOutputdoDecrypt(JweDecryptionInput jweDecryptionInput, byte[] cek) protected byte[]getActualCek(byte[] theCek, String algoJwt) protected StringgetContentEncryptionAlgorithm(JweDecryptionInput jweDecryptionInput) protected byte[]getContentEncryptionCipherAAD(JweDecryptionInput jweDecryptionInput) protected byte[]getContentEncryptionCipherInitVector(JweDecryptionInput jweDecryptionInput) protected AlgorithmParameterSpecgetContentEncryptionCipherSpec(JweDecryptionInput jweDecryptionInput) protected byte[]protected byte[]getEncryptedContentWithAuthTag(JweDecryptionInput jweDecryptionInput) protected byte[]getEncryptionAuthenticationTag(JweDecryptionInput jweDecryptionInput) protected intgetEncryptionAuthenticationTagLenBits(JweDecryptionInput jweDecryptionInput)
-
Field Details
-
LOG
-
-
Constructor Details
-
AbstractJweDecryption
protected AbstractJweDecryption(KeyDecryptionProvider keyDecryptionAlgo, ContentDecryptionProvider contentDecryptionAlgo)
-
-
Method Details
-
decrypt
- Specified by:
decryptin interfaceJweDecryptionProvider
-
decrypt
- Specified by:
decryptin interfaceJweDecryptionProvider
-
doDecrypt
-
getEncryptedContentEncryptionKey
-
getContentEncryptionCipherSpec
protected AlgorithmParameterSpec getContentEncryptionCipherSpec(JweDecryptionInput jweDecryptionInput) -
getContentEncryptionAlgorithm
-
getContentEncryptionCipherAAD
-
getEncryptedContentWithAuthTag
-
getContentEncryptionCipherInitVector
-
getEncryptionAuthenticationTag
-
getEncryptionAuthenticationTagLenBits
-
getActualCek
-
getKeyAlgorithm
- Specified by:
getKeyAlgorithmin interfaceJweKeyProperties
-
getContentAlgorithm
- Specified by:
getContentAlgorithmin interfaceJweKeyProperties
-