public class AesGcmKeyEncryptionAlgorithm extends AlgorithmInfo implements KeyManagementAlgorithm
| Modifier and Type | Class and Description |
|---|---|
static class |
AesGcmKeyEncryptionAlgorithm.Aes128Gcm |
static class |
AesGcmKeyEncryptionAlgorithm.Aes192Gcm |
static class |
AesGcmKeyEncryptionAlgorithm.Aes256Gcm |
log| Constructor and Description |
|---|
AesGcmKeyEncryptionAlgorithm(String alg,
int keyByteLength) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAvailable() |
Key |
manageForDecrypt(Key managementKey,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers) |
ContentEncryptionKeys |
manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride) |
void |
validateDecryptionKey(Key managementKey,
ContentEncryptionAlgorithm contentEncryptionAlg) |
void |
validateEncryptionKey(Key managementKey,
ContentEncryptionAlgorithm contentEncryptionAlg) |
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType, setAlgorithmIdentifier, setJavaAlgorithm, setKeyPersuasion, setKeyTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyTypepublic AesGcmKeyEncryptionAlgorithm(String alg, int keyByteLength)
public ContentEncryptionKeys manageForEncrypt(Key managementKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers, byte[] cekOverride) throws JoseException
manageForEncrypt in interface KeyManagementAlgorithmJoseExceptionpublic Key manageForDecrypt(Key managementKey, byte[] encryptedKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers) throws JoseException
manageForDecrypt in interface KeyManagementAlgorithmJoseExceptionpublic void validateEncryptionKey(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) throws InvalidKeyException
validateEncryptionKey in interface KeyManagementAlgorithmInvalidKeyExceptionpublic void validateDecryptionKey(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) throws InvalidKeyException
validateDecryptionKey in interface KeyManagementAlgorithmInvalidKeyExceptionpublic boolean isAvailable()
isAvailable in interface AlgorithmCopyright © 2015. All rights reserved.