Package org.jose4j.jwe
Class AesGcmKeyEncryptionAlgorithm
java.lang.Object
org.jose4j.jwa.AlgorithmInfo
org.jose4j.jwe.AesGcmKeyEncryptionAlgorithm
- All Implemented Interfaces:
Algorithm
,KeyManagementAlgorithm
- Direct Known Subclasses:
AesGcmKeyEncryptionAlgorithm.Aes128Gcm
,AesGcmKeyEncryptionAlgorithm.Aes192Gcm
,AesGcmKeyEncryptionAlgorithm.Aes256Gcm
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Fields inherited from class org.jose4j.jwa.AlgorithmInfo
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
manageForDecrypt
(CryptoPrimitive cryptoPrimitive, byte[] encryptedKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers, ProviderContext providerContext) manageForEncrypt
(Key managementKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers, byte[] cekOverride, ProviderContext providerContext) prepareForDecrypt
(Key managementKey, Headers headers, ProviderContext providerContext) void
validateDecryptionKey
(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) void
validateEncryptionKey
(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) Methods inherited from class org.jose4j.jwa.AlgorithmInfo
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType, setAlgorithmIdentifier, setJavaAlgorithm, setKeyPersuasion, setKeyType, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jose4j.jwa.Algorithm
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType
-
Constructor Details
-
AesGcmKeyEncryptionAlgorithm
-
-
Method Details
-
manageForEncrypt
public ContentEncryptionKeys manageForEncrypt(Key managementKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers, byte[] cekOverride, ProviderContext providerContext) throws JoseException - Specified by:
manageForEncrypt
in interfaceKeyManagementAlgorithm
- Throws:
JoseException
-
prepareForDecrypt
public CryptoPrimitive prepareForDecrypt(Key managementKey, Headers headers, ProviderContext providerContext) throws JoseException - Specified by:
prepareForDecrypt
in interfaceKeyManagementAlgorithm
- Throws:
JoseException
-
manageForDecrypt
public Key manageForDecrypt(CryptoPrimitive cryptoPrimitive, byte[] encryptedKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers, ProviderContext providerContext) throws JoseException - Specified by:
manageForDecrypt
in interfaceKeyManagementAlgorithm
- Throws:
JoseException
-
validateEncryptionKey
public void validateEncryptionKey(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) throws InvalidKeyException - Specified by:
validateEncryptionKey
in interfaceKeyManagementAlgorithm
- Throws:
InvalidKeyException
-
validateDecryptionKey
public void validateDecryptionKey(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) throws InvalidKeyException - Specified by:
validateDecryptionKey
in interfaceKeyManagementAlgorithm
- Throws:
InvalidKeyException
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailable
in interfaceAlgorithm
-