public class KeyAgreeRecipientInfo extends ASN1Encodable
Modifier and Type | Field and Description |
---|---|
private AlgorithmIdentifier |
keyEncryptionAlgorithm |
private OriginatorIdentifierOrKey |
originator |
private ASN1Sequence |
recipientEncryptedKeys |
private ASN1OctetString |
ukm |
private DERInteger |
version |
BER, DER
Constructor and Description |
---|
KeyAgreeRecipientInfo(ASN1Sequence seq) |
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(java.lang.Object obj)
return a KeyAgreeRecipientInfo object from the given object.
|
AlgorithmIdentifier |
getKeyEncryptionAlgorithm() |
OriginatorIdentifierOrKey |
getOriginator() |
ASN1Sequence |
getRecipientEncryptedKeys() |
ASN1OctetString |
getUserKeyingMaterial() |
DERInteger |
getVersion() |
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
private DERInteger 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.java.lang.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static KeyAgreeRecipientInfo getInstance(java.lang.Object obj)
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public DERInteger getVersion()
public OriginatorIdentifierOrKey getOriginator()
public ASN1OctetString getUserKeyingMaterial()
public AlgorithmIdentifier getKeyEncryptionAlgorithm()
public ASN1Sequence getRecipientEncryptedKeys()
public DERObject toASN1Object()
KeyAgreeRecipientInfo ::= SEQUENCE { version CMSVersion, -- always set to 3 originator [0] EXPLICIT OriginatorIdentifierOrKey, ukm [1] EXPLICIT UserKeyingMaterial OPTIONAL, keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, recipientEncryptedKeys RecipientEncryptedKeys }
toASN1Object
in class ASN1Encodable
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.