Package org.mozilla.jss.pkcs7
Class RecipientInfo
java.lang.Object
org.mozilla.jss.pkcs7.RecipientInfo
- All Implemented Interfaces:
ASN1Value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA template file for decoding a RecipientInfo blob -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OCTET_STRINGprivate IssuerAndSerialNumberprivate AlgorithmIdentifierprivate SEQUENCEstatic final Tagprivate static final RecipientInfo.Templateprivate INTEGER -
Constructor Summary
ConstructorsConstructorDescriptionRecipientInfo(INTEGER version, IssuerAndSerialNumber issuerAndSerialNumber, AlgorithmIdentifier keyEncryptionAlgorithmID, OCTET_STRING encryptedKey) Create a RecipientInfo ASN1 object. -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(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:ASN1ValueReturns 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:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
tag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-