Package org.mozilla.jss.pkcs7
Class EnvelopedData
java.lang.Object
org.mozilla.jss.pkcs7.EnvelopedData
- All Implemented Interfaces:
ASN1Value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A template file for decoding a EnvelopedData blob -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EncryptedContentInfo
private SET
private SEQUENCE
static final Tag
private INTEGER
-
Constructor Summary
ConstructorsConstructorDescriptionEnvelopedData
(INTEGER version, SET recipientInfos, EncryptedContentInfo encryptedContentInfo) Create a EnvelopedData 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.
-
Field Details
-
TAG
-
version
-
recipientInfos
-
encryptedContentInfo
-
sequence
-
-
Constructor Details
-
EnvelopedData
public EnvelopedData(INTEGER version, SET recipientInfos, EncryptedContentInfo encryptedContentInfo) Create a EnvelopedData 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
-
getRecipientInfos
-
getEncryptedContentInfo
-
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.
-