org.bouncycastle.asn1.cms
Class KeyAgreeRecipientInfo
- DEREncodable
public class KeyAgreeRecipientInfo
KeyAgreeRecipientInfo
public KeyAgreeRecipientInfo(ASN1Sequence seq)
getInstance
public static KeyAgreeRecipientInfo getInstance(Object obj)
return a KeyAgreeRecipientInfo object from the given object.
obj
- the object we want converted.
getInstance
public static KeyAgreeRecipientInfo getInstance(ASN1TaggedObject obj,
boolean explicit)
return a KeyAgreeRecipientInfo object from a tagged object.
obj
- the tagged object holding the object we want.explicit
- true if the object is meant to be explicitly
tagged false otherwise.
getRecipientEncryptedKeys
public ASN1Sequence getRecipientEncryptedKeys()
toASN1Object
public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
KeyAgreeRecipientInfo ::= SEQUENCE {
version CMSVersion, -- always set to 3
originator [0] EXPLICIT OriginatorIdentifierOrKey,
ukm [1] EXPLICIT UserKeyingMaterial OPTIONAL,
keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
recipientEncryptedKeys RecipientEncryptedKeys
}
- toASN1Object in interface ASN1Encodable