|
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.JceKeyAgreeRecipient
Field Summary | |
protected EnvelopedDataHelper |
contentHelper
|
protected EnvelopedDataHelper |
helper
|
protected EnvelopedDataHelper |
unwrappingHelper
|
Constructor Summary | |
JceKeyAgreeRecipient(java.security.PrivateKey recipientKey)
|
Method Summary | |
protected java.security.Key |
extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo senderKey,
org.bouncycastle.asn1.ASN1OctetString userKeyingMaterial,
byte[] encryptedContentEncryptionKey)
|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getPrivateKeyAlgorithmIdentifier()
|
JceKeyAgreeRecipient |
setContentProvider(java.security.Provider provider)
Set the provider to use for content processing. |
JceKeyAgreeRecipient |
setContentProvider(java.lang.String providerName)
Set the provider to use for content processing. |
JceKeyAgreeRecipient |
setPrivateKeyAlgorithmIdentifier(org.bouncycastle.asn1.x509.AlgorithmIdentifier privKeyAlgID)
Set the algorithm identifier for the private key. |
JceKeyAgreeRecipient |
setProvider(java.security.Provider provider)
Set the provider to use for key recovery and content processing. |
JceKeyAgreeRecipient |
setProvider(java.lang.String providerName)
Set the provider to use for key recovery and content processing. |
JceKeyAgreeRecipient |
setUnwrappingProvider(java.security.Provider provider)
Set the provider to use for unwrapping the content session key. |
JceKeyAgreeRecipient |
setUnwrappingProvider(java.lang.String providerName)
Set the provider to use for unwrapping the content session key. |
protected java.security.Key |
unwrapSessionKey(org.bouncycastle.asn1.ASN1ObjectIdentifier wrapAlg,
javax.crypto.SecretKey agreedKey,
org.bouncycastle.asn1.ASN1ObjectIdentifier contentEncryptionAlgorithm,
byte[] encryptedContentEncryptionKey)
|
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.KeyAgreeRecipient |
getRecipientOperator |
Field Detail |
protected EnvelopedDataHelper helper
protected EnvelopedDataHelper contentHelper
protected EnvelopedDataHelper unwrappingHelper
Constructor Detail |
public JceKeyAgreeRecipient(java.security.PrivateKey recipientKey)
Method Detail |
public JceKeyAgreeRecipient setProvider(java.security.Provider provider)
provider
- provider to use.
public JceKeyAgreeRecipient setProvider(java.lang.String providerName)
providerName
- the name of the provider to use.
public JceKeyAgreeRecipient setUnwrappingProvider(java.security.Provider provider)
provider
- provider to use.
public JceKeyAgreeRecipient setUnwrappingProvider(java.lang.String providerName)
providerName
- the name of the provider to use.
public JceKeyAgreeRecipient setContentProvider(java.security.Provider provider)
provider
- the provider to use.
public JceKeyAgreeRecipient setContentProvider(java.lang.String providerName)
providerName
- the name of the provider to use.
public JceKeyAgreeRecipient setPrivateKeyAlgorithmIdentifier(org.bouncycastle.asn1.x509.AlgorithmIdentifier privKeyAlgID)
privKeyAlgID
- the algorithm identifier for the private key.
protected java.security.Key unwrapSessionKey(org.bouncycastle.asn1.ASN1ObjectIdentifier wrapAlg, javax.crypto.SecretKey agreedKey, org.bouncycastle.asn1.ASN1ObjectIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey) throws CMSException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
CMSException
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
protected java.security.Key extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo senderKey, org.bouncycastle.asn1.ASN1OctetString userKeyingMaterial, byte[] encryptedContentEncryptionKey) throws CMSException
CMSException
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getPrivateKeyAlgorithmIdentifier()
getPrivateKeyAlgorithmIdentifier
in interface KeyAgreeRecipient
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |