Package org.mozilla.jss.pkix.cms
Class RecipientInfo
java.lang.Object
org.mozilla.jss.pkix.cms.RecipientInfo
- All Implemented Interfaces:
ASN1Value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A template file for decoding a RecipientInfo blob -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OCTET_STRING
private IssuerAndSerialNumber
private AlgorithmIdentifier
private SEQUENCE
static final Tag
private static final RecipientInfo.Template
private INTEGER
-
Constructor Summary
ConstructorsConstructorDescriptionRecipientInfo
(INTEGER version, IssuerAndSerialNumber issuerAndSerialNumber, AlgorithmIdentifier keyEncryptionAlgorithmID, OCTET_STRING encryptedKey) Create a RecipientInfo ASN1 object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static RecipientInfo.Template
-
Field Details
-
TAG
-
version
-
issuerAndSerialNumber
-
keyEncryptionAlgorithmID
-
encryptedKey
-
sequence
-
templateInstance
-
-
Constructor Details
-
RecipientInfo
public RecipientInfo(INTEGER version, IssuerAndSerialNumber issuerAndSerialNumber, AlgorithmIdentifier keyEncryptionAlgorithmID, OCTET_STRING encryptedKey) Create a RecipientInfo ASN1 object.
-
-
Method Details
-
getTag
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
getVersion
-
getissuerAndSerialNumber
-
getKeyEncryptionAlgorithmID
-
getEncryptedKey
-
getTemplate
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
tag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-