public abstract class BcKEKRecipient extends AbstractRecipient implements KEKRecipient
| Constructor and Description |
|---|
BcKEKRecipient(BcSymmetricKeyUnwrapper unwrapper) |
| Modifier and Type | Method and Description |
|---|---|
protected org.bouncycastle.crypto.CipherParameters |
extractSecretKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm,
byte[] encryptedContentEncryptionKey) |
BcKEKRecipient |
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 BcKEKRecipient(BcSymmetricKeyUnwrapper unwrapper)
public BcKEKRecipient 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 contentEncryptionAlgorithm,
byte[] encryptedContentEncryptionKey)
throws CMSException
CMSException