Class AbstractWrapKeyEncryptionAlgorithm
java.lang.Object
org.apache.cxf.rs.security.jose.jwe.AbstractWrapKeyEncryptionAlgorithm
- All Implemented Interfaces:
KeyEncryptionProvider
- Direct Known Subclasses:
AesGcmWrapKeyEncryptionAlgorithm,AesWrapKeyEncryptionAlgorithm,RSAKeyEncryptionAlgorithm
public abstract class AbstractWrapKeyEncryptionAlgorithm
extends Object
implements KeyEncryptionProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractWrapKeyEncryptionAlgorithm(Key key, boolean wrap, Set<String> supportedAlgorithms) protectedAbstractWrapKeyEncryptionAlgorithm(Key key, Set<String> supportedAlgorithms) protectedAbstractWrapKeyEncryptionAlgorithm(Key key, KeyAlgorithm jweAlgo, boolean wrap, Set<String> supportedAlgorithms) protectedAbstractWrapKeyEncryptionAlgorithm(Key key, KeyAlgorithm jweAlgo, Set<String> supportedAlgorithms) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcheckAlgorithm(String algo) protected voidcheckAlgorithms(JweHeaders headers) protected AlgorithmParameterSpecgetAlgorithmParameterSpec(JweHeaders headers) protected StringgetContentEncryptionAlgoJava(JweHeaders headers) byte[]getEncryptedContentEncryptionKey(JweHeaders headers, byte[] cek) protected StringgetKeyEncryptionAlgoJava(JweHeaders headers)
-
Field Details
-
LOG
-
-
Constructor Details
-
AbstractWrapKeyEncryptionAlgorithm
-
AbstractWrapKeyEncryptionAlgorithm
-
AbstractWrapKeyEncryptionAlgorithm
protected AbstractWrapKeyEncryptionAlgorithm(Key key, KeyAlgorithm jweAlgo, Set<String> supportedAlgorithms) -
AbstractWrapKeyEncryptionAlgorithm
protected AbstractWrapKeyEncryptionAlgorithm(Key key, KeyAlgorithm jweAlgo, boolean wrap, Set<String> supportedAlgorithms)
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKeyEncryptionProvider
-
getEncryptedContentEncryptionKey
- Specified by:
getEncryptedContentEncryptionKeyin interfaceKeyEncryptionProvider
-
getKeyEncryptionAlgoJava
-
getContentEncryptionAlgoJava
-
getAlgorithmParameterSpec
-
checkAlgorithm
-
checkAlgorithms
-