public abstract class BcKeyTransRecipient extends AbstractRecipient implements KeyTransRecipient
| Constructor and Description |
|---|
BcKeyTransRecipient(org.bouncycastle.crypto.params.AsymmetricKeyParameter recipientKey) |
| Modifier and Type | Method and Description |
|---|---|
protected org.bouncycastle.crypto.CipherParameters |
extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm,
byte[] encryptedEncryptionKey) |
BcKeyTransRecipient |
setAllowedContentAlgorithms(java.util.Set<org.bouncycastle.asn1.ASN1ObjectIdentifier> allowedContentAlgorithms)
Set the content-encryption algorithms this recipient is willing to unwrap a key for.
|
checkTagSize, isContentAlgorithmAllowed, setAllowedContentAlgorithmSet, setMinimumTagSizeInBitsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRecipientOperatorpublic BcKeyTransRecipient(org.bouncycastle.crypto.params.AsymmetricKeyParameter recipientKey)
public BcKeyTransRecipient setAllowedContentAlgorithms(java.util.Set<org.bouncycastle.asn1.ASN1ObjectIdentifier> allowedContentAlgorithms)
allowedContentAlgorithms - the set of permitted content-encryption algorithm OIDs.protected org.bouncycastle.crypto.CipherParameters extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm,
byte[] encryptedEncryptionKey)
throws CMSException
CMSException