Top Description Fields Constructors Methods
org.bouncycastle.cms

public Class KeyAgreeRecipientInformation

extends RecipientInformation
Class Inheritance
Imports
java.io.IOException, java.util.List, org.bouncycastle.asn1.ASN1OctetString, .ASN1Sequence, org.bouncycastle.asn1.cms.IssuerAndSerialNumber, .KeyAgreeRecipientIdentifier, .KeyAgreeRecipientInfo, .OriginatorIdentifierOrKey, .OriginatorPublicKey, .RecipientEncryptedKey, .RecipientKeyIdentifier, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectKeyIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.util.Arrays

the RecipientInfo class for a recipient who has been sent a message encrypted using key agreement.

Field Summary

Modifier and TypeField and Description
private ASN1OctetString
private KeyAgreeRecipientInfo
Inherited from org.bouncycastle.cms.RecipientInformation:
keyEncAlgmessageAlgorithmridsecureReadable

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public OriginatorIdentifierOrKey

Returns:

the originator details.
getOriginator
()

Return the originator details for this recipient.

private SubjectPublicKeyInfo
private SubjectPublicKeyInfo
protected RecipientOperator
private SubjectPublicKeyInfo
public byte[]

Returns:

the user keying material, null if absent.
getUserKeyingMaterial
()

Return the userKeyingMaterial for this agreement recipient.

pack-priv static void
readRecipientInfo(List<E> infos, KeyAgreeRecipientInfo info, AlgorithmIdentifier messageAlgorithm, CMSSecureReadable secureReadable, AuthAttributesProvider additionalData)

Inherited from org.bouncycastle.cms.RecipientInformation:
getContentgetContentDigestgetContentStreamgetContentTypegetKeyEncryptionAlgOIDgetKeyEncryptionAlgorithmgetKeyEncryptionAlgParamsgetMacgetRID

Field Detail

encryptedKeyback to summary
private ASN1OctetString encryptedKey
infoback to summary
private KeyAgreeRecipientInfo info

Constructor Detail

KeyAgreeRecipientInformationback to summary
pack-priv KeyAgreeRecipientInformation(KeyAgreeRecipientInfo info, RecipientId rid, ASN1OctetString encryptedKey, AlgorithmIdentifier messageAlgorithm, CMSSecureReadable secureReadable, AuthAttributesProvider additionalData)

Method Detail

getOriginatorback to summary
public OriginatorIdentifierOrKey getOriginator()

Return the originator details for this recipient.

Returns:OriginatorIdentifierOrKey

the originator details.

getPublicKeyInfoFromOriginatorIdback to summary
private SubjectPublicKeyInfo getPublicKeyInfoFromOriginatorId(OriginatorId origID) throws CMSException
getPublicKeyInfoFromOriginatorPublicKeyback to summary
private SubjectPublicKeyInfo getPublicKeyInfoFromOriginatorPublicKey(AlgorithmIdentifier recKeyAlgId, OriginatorPublicKey originatorPublicKey)
getRecipientOperatorback to summary
protected RecipientOperator getRecipientOperator(Recipient recipient) throws CMSException, IOException

Implements abstract org.bouncycastle.cms.RecipientInformation.getRecipientOperator.

getSenderPublicKeyInfoback to summary
private SubjectPublicKeyInfo getSenderPublicKeyInfo(AlgorithmIdentifier recKeyAlgId, OriginatorIdentifierOrKey originator) throws CMSException, IOException
getUserKeyingMaterialback to summary
public byte[] getUserKeyingMaterial()

Return the userKeyingMaterial for this agreement recipient.

Returns:byte[]

the user keying material, null if absent.

readRecipientInfoback to summary
pack-priv static void readRecipientInfo(List<E> infos, KeyAgreeRecipientInfo info, AlgorithmIdentifier messageAlgorithm, CMSSecureReadable secureReadable, AuthAttributesProvider additionalData)