public class AesGcmContentEncryptionAlgorithm extends AlgorithmInfo implements ContentEncryptionAlgorithm
| Modifier and Type | Class and Description |
|---|---|
static class |
AesGcmContentEncryptionAlgorithm.Aes128Gcm |
static class |
AesGcmContentEncryptionAlgorithm.Aes192Gcm |
static class |
AesGcmContentEncryptionAlgorithm.Aes256Gcm |
log| Constructor and Description |
|---|
AesGcmContentEncryptionAlgorithm(String alg,
int keyBitLength) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(ContentEncryptionParts contentEncParts,
byte[] aad,
byte[] contentEncryptionKey,
Headers headers,
ProviderContext providerContext) |
ContentEncryptionParts |
encrypt(byte[] plaintext,
byte[] aad,
byte[] contentEncryptionKey,
byte[] iv,
String provider) |
ContentEncryptionParts |
encrypt(byte[] plaintext,
byte[] aad,
byte[] contentEncryptionKey,
Headers headers,
byte[] ivOverride,
ProviderContext providerContext) |
ContentEncryptionKeyDescriptor |
getContentEncryptionKeyDescriptor() |
boolean |
isAvailable() |
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType, setAlgorithmIdentifier, setJavaAlgorithm, setKeyPersuasion, setKeyTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyTypepublic AesGcmContentEncryptionAlgorithm(String alg, int keyBitLength)
public ContentEncryptionKeyDescriptor getContentEncryptionKeyDescriptor()
getContentEncryptionKeyDescriptor in interface ContentEncryptionAlgorithmpublic ContentEncryptionParts encrypt(byte[] plaintext, byte[] aad, byte[] contentEncryptionKey, Headers headers, byte[] ivOverride, ProviderContext providerContext) throws JoseException
encrypt in interface ContentEncryptionAlgorithmJoseExceptionpublic ContentEncryptionParts encrypt(byte[] plaintext, byte[] aad, byte[] contentEncryptionKey, byte[] iv, String provider) throws JoseException
JoseExceptionpublic byte[] decrypt(ContentEncryptionParts contentEncParts, byte[] aad, byte[] contentEncryptionKey, Headers headers, ProviderContext providerContext) throws JoseException
decrypt in interface ContentEncryptionAlgorithmJoseExceptionpublic boolean isAvailable()
isAvailable in interface AlgorithmCopyright © 2016. All rights reserved.