public class AesCbcHmacSha2ContentEncryptionAlgorithm extends AlgorithmInfo implements ContentEncryptionAlgorithm
| Modifier and Type | Class and Description |
|---|---|
static class |
AesCbcHmacSha2ContentEncryptionAlgorithm.Aes128CbcHmacSha256 |
static class |
AesCbcHmacSha2ContentEncryptionAlgorithm.Aes192CbcHmacSha384 |
static class |
AesCbcHmacSha2ContentEncryptionAlgorithm.Aes256CbcHmacSha512 |
| Modifier and Type | Field and Description |
|---|---|
static int |
IV_BYTE_LENGTH |
log| Constructor and Description |
|---|
AesCbcHmacSha2ContentEncryptionAlgorithm(String alg,
int cekByteLen,
String javaHmacAlg,
int tagTruncationLength) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(ContentEncryptionParts contentEncryptionParts,
byte[] aad,
byte[] contentEncryptionKey,
Headers headers,
ProviderContext providerContext) |
ContentEncryptionParts |
encrypt(byte[] plaintext,
byte[] aad,
byte[] contentEncryptionKey,
Headers headers,
byte[] ivOverride,
ProviderContext providerContext) |
ContentEncryptionKeyDescriptor |
getContentEncryptionKeyDescriptor() |
String |
getHmacJavaAlgorithm() |
int |
getTagTruncationLength() |
boolean |
isAvailable() |
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType, setAlgorithmIdentifier, setJavaAlgorithm, setKeyPersuasion, setKeyTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyTypepublic static final int IV_BYTE_LENGTH
public String getHmacJavaAlgorithm()
public int getTagTruncationLength()
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 byte[] decrypt(ContentEncryptionParts contentEncryptionParts, byte[] aad, byte[] contentEncryptionKey, Headers headers, ProviderContext providerContext) throws JoseException
decrypt in interface ContentEncryptionAlgorithmJoseExceptionpublic boolean isAvailable()
isAvailable in interface AlgorithmCopyright © 2017. All rights reserved.