public class Pbes2HmacShaWithAesKeyWrapAlgorithm extends AlgorithmInfo implements KeyManagementAlgorithm
| Modifier and Type | Class and Description |
|---|---|
static class |
Pbes2HmacShaWithAesKeyWrapAlgorithm.HmacSha256Aes128 |
static class |
Pbes2HmacShaWithAesKeyWrapAlgorithm.HmacSha384Aes192 |
static class |
Pbes2HmacShaWithAesKeyWrapAlgorithm.HmacSha512Aes256 |
log| Constructor and Description |
|---|
Pbes2HmacShaWithAesKeyWrapAlgorithm(String alg,
String hmacAlg,
AesKeyWrapManagementAlgorithm keyWrapAlg) |
| Modifier and Type | Method and Description |
|---|---|
protected Key |
deriveForEncrypt(Key managementKey,
Headers headers,
ProviderContext providerContext) |
long |
getDefaultIterationCount() |
int |
getDefaultSaltByteLength() |
boolean |
isAvailable() |
Key |
manageForDecrypt(Key managementKey,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
ProviderContext providerContext) |
ContentEncryptionKeys |
manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride,
ProviderContext providerContext) |
void |
setDefaultIterationCount(long defaultIterationCount) |
void |
setDefaultSaltByteLength(int defaultSaltByteLength) |
void |
validateDecryptionKey(Key managementKey,
ContentEncryptionAlgorithm contentEncryptionAlg) |
void |
validateEncryptionKey(Key managementKey,
ContentEncryptionAlgorithm contentEncryptionAlg) |
void |
validateKey(Key managementKey) |
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType, setAlgorithmIdentifier, setJavaAlgorithm, setKeyPersuasion, setKeyTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyTypepublic Pbes2HmacShaWithAesKeyWrapAlgorithm(String alg, String hmacAlg, AesKeyWrapManagementAlgorithm keyWrapAlg)
public ContentEncryptionKeys manageForEncrypt(Key managementKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers, byte[] cekOverride, ProviderContext providerContext) throws JoseException
manageForEncrypt in interface KeyManagementAlgorithmJoseExceptionprotected Key deriveForEncrypt(Key managementKey, Headers headers, ProviderContext providerContext) throws JoseException
JoseExceptionpublic Key manageForDecrypt(Key managementKey, byte[] encryptedKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers, ProviderContext providerContext) 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 void validateKey(Key managementKey) throws InvalidKeyException
InvalidKeyExceptionpublic boolean isAvailable()
isAvailable in interface Algorithmpublic long getDefaultIterationCount()
public void setDefaultIterationCount(long defaultIterationCount)
public int getDefaultSaltByteLength()
public void setDefaultSaltByteLength(int defaultSaltByteLength)
Copyright © 2017. All rights reserved.