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) |
long |
getDefaultIterationCount() |
int |
getDefaultSaltByteLength() |
boolean |
isAvailable() |
Key |
manageForDecrypt(Key managementKey,
byte[] encryptedKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers) |
ContentEncryptionKeys |
manageForEncrypt(Key managementKey,
ContentEncryptionKeyDescriptor cekDesc,
Headers headers,
byte[] cekOverride) |
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, setKeyType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType
public Pbes2HmacShaWithAesKeyWrapAlgorithm(String alg, String hmacAlg, AesKeyWrapManagementAlgorithm keyWrapAlg)
public ContentEncryptionKeys manageForEncrypt(Key managementKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers, byte[] cekOverride) throws JoseException
manageForEncrypt
in interface KeyManagementAlgorithm
JoseException
protected Key deriveForEncrypt(Key managementKey, Headers headers) throws InvalidKeyException
InvalidKeyException
public Key manageForDecrypt(Key managementKey, byte[] encryptedKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers) throws JoseException
manageForDecrypt
in interface KeyManagementAlgorithm
JoseException
public void validateEncryptionKey(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) throws InvalidKeyException
validateEncryptionKey
in interface KeyManagementAlgorithm
InvalidKeyException
public void validateDecryptionKey(Key managementKey, ContentEncryptionAlgorithm contentEncryptionAlg) throws InvalidKeyException
validateDecryptionKey
in interface KeyManagementAlgorithm
InvalidKeyException
public void validateKey(Key managementKey) throws InvalidKeyException
InvalidKeyException
public boolean isAvailable()
isAvailable
in interface Algorithm
public long getDefaultIterationCount()
public void setDefaultIterationCount(long defaultIterationCount)
public int getDefaultSaltByteLength()
public void setDefaultSaltByteLength(int defaultSaltByteLength)
Copyright © 2015. All rights reserved.