ASN1Encodable
, Encodable
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
Constructor | Description |
---|---|
KeyAgreeRecipientInfo(ASN1Sequence seq) |
Deprecated.
use getInstance()
|
KeyAgreeRecipientInfo(OriginatorIdentifierOrKey originator,
ASN1OctetString ukm,
AlgorithmIdentifier keyEncryptionAlgorithm,
ASN1Sequence recipientEncryptedKeys) |
Modifier and Type | Method | Description |
---|---|---|
static KeyAgreeRecipientInfo |
getInstance(java.lang.Object obj) |
Return a KeyAgreeRecipientInfo object from the given object.
|
static KeyAgreeRecipientInfo |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
Return a KeyAgreeRecipientInfo object from a tagged 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
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.java.lang.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static KeyAgreeRecipientInfo getInstance(java.lang.Object obj)
Accepted inputs:
KeyAgreeRecipientInfo
object
ASN1Sequence
input formats with KeyAgreeRecipientInfo structure inside
obj
- the object we want converted.java.lang.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