org.mozilla.jss.pkix.cms

Class RecipientInfo

Implemented Interfaces:
ASN1Value

public class RecipientInfo
extends java.lang.Object
implements ASN1Value

Nested Class Summary

static class
RecipientInfo.Template
A template file for decoding a RecipientInfo blob

Field Summary

static Tag
TAG

Constructor Summary

RecipientInfo(INTEGER version, IssuerAndSerialNumber issuerAndSerialNumber, AlgorithmIdentifier keyEncryptionAlgorithmID, OCTET_STRING encryptedKey)
Create a RecipientInfo ASN1 object.

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag tag, OutputStream ostream)
OCTET_STRING
getEncryptedKey()
AlgorithmIdentifier
getKeyEncryptionAlgorithmID()
Tag
getTag()
static RecipientInfo.Template
getTemplate()
INTEGER
getVersion()
IssuerAndSerialNumber
getissuerAndSerialNumber()

Field Details

TAG

public static final Tag TAG

Constructor Details

RecipientInfo

public RecipientInfo(INTEGER version,
                     IssuerAndSerialNumber issuerAndSerialNumber,
                     AlgorithmIdentifier keyEncryptionAlgorithmID,
                     OCTET_STRING encryptedKey)
Create a RecipientInfo ASN1 object.

Method Details

encode

public void encode(OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value

encode

public void encode(Tag tag,
                   OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value

getEncryptedKey

public OCTET_STRING getEncryptedKey()

getKeyEncryptionAlgorithmID

public AlgorithmIdentifier getKeyEncryptionAlgorithmID()

getTag

public Tag getTag()
Specified by:
getTag in interface ASN1Value

getTemplate

public static RecipientInfo.Template getTemplate()

getVersion

public INTEGER getVersion()

getissuerAndSerialNumber

public IssuerAndSerialNumber getissuerAndSerialNumber()