|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.cms.jcajce.JceKEKRecipient
Field Summary | |
protected EnvelopedDataHelper |
contentHelper
|
protected EnvelopedDataHelper |
helper
|
protected boolean |
validateKeySize
|
Constructor Summary | |
JceKEKRecipient(javax.crypto.SecretKey recipientKey)
|
Method Summary | |
protected java.security.Key |
extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm,
byte[] encryptedContentEncryptionKey)
|
JceKEKRecipient |
setContentProvider(java.security.Provider provider)
Set the provider to use for content processing. |
JceKEKRecipient |
setContentProvider(java.lang.String providerName)
Set the provider to use for content processing. |
JceKEKRecipient |
setKeySizeValidation(boolean doValidate)
Set validation of retrieved key sizes against the algorithm parameters for the encrypted key where possible - default is off. |
JceKEKRecipient |
setProvider(java.security.Provider provider)
Set the provider to use for key recovery and content processing. |
JceKEKRecipient |
setProvider(java.lang.String providerName)
Set the provider to use for key recovery and content processing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.bouncycastle.cms.KEKRecipient |
getRecipientOperator |
Field Detail |
protected EnvelopedDataHelper helper
protected EnvelopedDataHelper contentHelper
protected boolean validateKeySize
Constructor Detail |
public JceKEKRecipient(javax.crypto.SecretKey recipientKey)
Method Detail |
public JceKEKRecipient setProvider(java.security.Provider provider)
provider
- provider to use.
public JceKEKRecipient setProvider(java.lang.String providerName)
providerName
- the name of the provider to use.
public JceKEKRecipient setContentProvider(java.security.Provider provider)
provider
- the provider to use.
public JceKEKRecipient setContentProvider(java.lang.String providerName)
providerName
- the name of the provider to use.
public JceKEKRecipient setKeySizeValidation(boolean doValidate)
This setting will not have any affect if the encryption algorithm in the recipient does not specify a particular key size, or if the unwrapper is a HSM and the byte encoding of the unwrapped secret key is not available.
doValidate
- true if unwrapped key's should be validated against the content encryption algorithm, false otherwise.
protected java.security.Key extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedContentEncryptionKey) throws CMSException
CMSException
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |