public class KeyAgreeRecipientInfo extends ASN1Object
KeyAgreeRecipientInfo ::= SEQUENCE { version CMSVersion, -- always set to 3 originator [0] EXPLICIT OriginatorIdentifierOrKey, ukm [1] EXPLICIT UserKeyingMaterial OPTIONAL, keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, recipientEncryptedKeys RecipientEncryptedKeys } UserKeyingMaterial ::= OCTET STRING
Modifier and Type | Field and Description |
---|---|
private AlgorithmIdentifier |
keyEncryptionAlgorithm |
private OriginatorIdentifierOrKey |
originator |
private ASN1Sequence |
recipientEncryptedKeys |
private ASN1OctetString |
ukm |
private ASN1Integer |
version |
Constructor and Description |
---|
KeyAgreeRecipientInfo(ASN1Sequence seq)
Deprecated.
use getInstance()
|
KeyAgreeRecipientInfo(OriginatorIdentifierOrKey originator,
ASN1OctetString ukm,
AlgorithmIdentifier keyEncryptionAlgorithm,
ASN1Sequence recipientEncryptedKeys) |
Modifier and Type | Method and Description |
---|---|
static KeyAgreeRecipientInfo |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Return a KeyAgreeRecipientInfo object from a tagged object.
|
static KeyAgreeRecipientInfo |
getInstance(Object obj)
Return a KeyAgreeRecipientInfo object from the given object.
|
AlgorithmIdentifier |
getKeyEncryptionAlgorithm() |
OriginatorIdentifierOrKey |
getOriginator() |
ASN1Sequence |
getRecipientEncryptedKeys() |
ASN1OctetString |
getUserKeyingMaterial() |
ASN1Integer |
getVersion() |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
private ASN1Integer version
private OriginatorIdentifierOrKey originator
private ASN1OctetString ukm
private AlgorithmIdentifier keyEncryptionAlgorithm
private ASN1Sequence recipientEncryptedKeys
public KeyAgreeRecipientInfo(OriginatorIdentifierOrKey originator, ASN1OctetString ukm, AlgorithmIdentifier keyEncryptionAlgorithm, ASN1Sequence recipientEncryptedKeys)
public KeyAgreeRecipientInfo(ASN1Sequence seq)
public static KeyAgreeRecipientInfo getInstance(ASN1TaggedObject obj, boolean explicit)
obj
- the tagged object holding the object we want.explicit
- true if the object is meant to be explicitly
tagged false otherwise.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static KeyAgreeRecipientInfo getInstance(Object obj)
Accepted inputs:
KeyAgreeRecipientInfo
object
ASN1Sequence
input formats with KeyAgreeRecipientInfo structure inside
obj
- the object we want converted.IllegalArgumentException
- if the object cannot be converted.public ASN1Integer getVersion()
public OriginatorIdentifierOrKey getOriginator()
public ASN1OctetString getUserKeyingMaterial()
public AlgorithmIdentifier getKeyEncryptionAlgorithm()
public ASN1Sequence getRecipientEncryptedKeys()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object