org.mozilla.jss.pkcs7

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)
Write this value's DER encoding to an output stream using its own base tag.
void
encode(Tag tag, OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag.
OCTET_STRING
getEncryptedKey()
AlgorithmIdentifier
getKeyEncryptionAlgorithmID()
Tag
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
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
Write this value's DER encoding to an output stream using its own base tag.
Specified by:
encode in interface ASN1Value

encode

public void encode(Tag tag,
                   OutputStream ostream)
            throws IOException
Write this value's DER encoding to an output stream using an implicit tag.
Specified by:
encode in interface ASN1Value

getEncryptedKey

public OCTET_STRING getEncryptedKey()

getKeyEncryptionAlgorithmID

public AlgorithmIdentifier getKeyEncryptionAlgorithmID()

getTag

public Tag getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
Specified by:
getTag in interface ASN1Value

getTemplate

public static RecipientInfo.Template getTemplate()

getVersion

public INTEGER getVersion()

getissuerAndSerialNumber

public IssuerAndSerialNumber getissuerAndSerialNumber()