Class AbstractJweEncryption
java.lang.Object
org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption
- All Implemented Interfaces:
JweEncryptionProvider,JweKeyProperties
- Direct Known Subclasses:
JweEncryption
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJweEncryption(ContentEncryptionProvider contentEncryptionAlgo, KeyEncryptionProvider keyEncryptionAlgo) -
Method Summary
Modifier and TypeMethodDescriptionprotected SecretKeyencrypt(byte[] content, JweHeaders jweHeaders) JWE compact encryptionprotected byte[]encryptInternal(AbstractJweEncryption.JweEncryptionInternal state, byte[] content) protected byte[]protected byte[]getActualCek(byte[] theCek, String algoJwt) protected byte[]getActualCipher(byte[] cipher) protected AlgorithmParameterSpecgetAlgorithmParameterSpec(byte[] theIv) protected byte[]getAuthenticationTag(AbstractJweEncryption.JweEncryptionInternal state, byte[] cipher) protected AuthenticationTagProducerprotected Stringprotected Stringprotected ContentEncryptionProviderprotected byte[]getContentEncryptionKey(JweHeaders headers) protected byte[]getEncryptedContentEncryptionKey(JweHeaders headers, byte[] theCek) getEncryptionOutput(JweEncryptionInput jweInput) Prepare JWE state for completing either JWE compact or JSON encryptionprotected JsonMapObjectReaderWriterprotected KeyEncryptionProvider
-
Field Details
-
LOG
-
DEFAULT_AUTH_TAG_LENGTH
protected static final int DEFAULT_AUTH_TAG_LENGTH- See Also:
-
-
Constructor Details
-
AbstractJweEncryption
protected AbstractJweEncryption(ContentEncryptionProvider contentEncryptionAlgo, KeyEncryptionProvider keyEncryptionAlgo)
-
-
Method Details
-
getContentEncryptionAlgorithm
-
getAlgorithmParameterSpec
-
getContentEncryptionKey
-
getEncryptedContentEncryptionKey
-
getContentEncryptionAlgoJwt
-
getContentEncryptionAlgoJava
-
getAAD
-
encrypt
Description copied from interface:JweEncryptionProviderJWE compact encryption- Specified by:
encryptin interfaceJweEncryptionProvider
-
getEncryptionOutput
Description copied from interface:JweEncryptionProviderPrepare JWE state for completing either JWE compact or JSON encryption- Specified by:
getEncryptionOutputin interfaceJweEncryptionProvider
-
encryptInternal
-
getActualCipher
protected byte[] getActualCipher(byte[] cipher) -
getAuthenticationTag
protected byte[] getAuthenticationTag(AbstractJweEncryption.JweEncryptionInternal state, byte[] cipher) -
getKeyAlgorithm
- Specified by:
getKeyAlgorithmin interfaceJweKeyProperties
-
getContentAlgorithm
- Specified by:
getContentAlgorithmin interfaceJweKeyProperties
-
getJwtHeadersWriter
-
getAuthenticationTagProducer
protected AuthenticationTagProducer getAuthenticationTagProducer(AbstractJweEncryption.JweEncryptionInternal state) -
createCekSecretKey
-
getActualCek
-
getKeyEncryptionAlgo
-