Package org.jose4j.jwe
Class AesKeyWrapManagementAlgorithm
java.lang.Object
org.jose4j.jwa.AlgorithmInfo
org.jose4j.jwe.WrappingKeyManagementAlgorithm
org.jose4j.jwe.AesKeyWrapManagementAlgorithm
- All Implemented Interfaces:
Algorithm,KeyManagementAlgorithm
- Direct Known Subclasses:
AesKeyWrapManagementAlgorithm.Aes128,AesKeyWrapManagementAlgorithm.Aes192,AesKeyWrapManagementAlgorithm.Aes256
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsFields inherited from class org.jose4j.jwe.WrappingKeyManagementAlgorithm
log, useSuppliedKeyProviderContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intboolean(package private) AesKeyWrapManagementAlgorithmvoidvalidateDecryptionKey(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) voidvalidateEncryptionKey(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) (package private) voidvalidateKey(Key managementKey) Methods inherited from class org.jose4j.jwe.WrappingKeyManagementAlgorithm
initCipher, manageForDecrypt, manageForEnc, manageForEncrypt, prepareForDecrypt, setAlgorithmParameterSpec, unwrapMethods inherited from class org.jose4j.jwa.AlgorithmInfo
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType, setAlgorithmIdentifier, setJavaAlgorithm, setKeyPersuasion, setKeyType, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jose4j.jwa.Algorithm
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType
-
Field Details
-
keyByteLength
int keyByteLength
-
-
Constructor Details
-
AesKeyWrapManagementAlgorithm
-
-
Method Details
-
getKeyByteLength
int getKeyByteLength() -
validateEncryptionKey
public void validateEncryptionKey(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) throws InvalidKeyException - Throws:
InvalidKeyException
-
validateDecryptionKey
public void validateDecryptionKey(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) throws InvalidKeyException - Throws:
InvalidKeyException
-
validateKey
- Throws:
InvalidKeyException
-
isAvailable
public boolean isAvailable() -
setUseGeneralProviderContext
AesKeyWrapManagementAlgorithm setUseGeneralProviderContext()
-