public class EcdhKeyAgreementWithAesKeyWrapAlgorithm extends AlgorithmInfo implements KeyManagementAlgorithm
Modifier and Type | Class and Description |
---|---|
static class |
EcdhKeyAgreementWithAesKeyWrapAlgorithm.EcdhKeyAgreementWithAes128KeyWrapAlgorithm |
static class |
EcdhKeyAgreementWithAesKeyWrapAlgorithm.EcdhKeyAgreementWithAes192KeyWrapAlgorithm |
static class |
EcdhKeyAgreementWithAesKeyWrapAlgorithm.EcdhKeyAgreementWithAes256KeyWrapAlgorithm |
log
Constructor and Description |
---|
EcdhKeyAgreementWithAesKeyWrapAlgorithm(String alg,
AesKeyWrapManagementAlgorithm keyWrapAlgorithm) |
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, setKeyType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType
public EcdhKeyAgreementWithAesKeyWrapAlgorithm(String alg, AesKeyWrapManagementAlgorithm keyWrapAlgorithm)
public ContentEncryptionKeys manageForEncrypt(Key managementKey, ContentEncryptionKeyDescriptor cekDesc, Headers headers, byte[] cekOverride) throws JoseException
manageForEncrypt
in interface KeyManagementAlgorithm
JoseException
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 boolean isAvailable()
isAvailable
in interface Algorithm
Copyright © 2015. All rights reserved.