Package org.mozilla.jss.pkcs7
Class EncryptedData
java.lang.Object
org.mozilla.jss.pkcs7.EncryptedData
- All Implemented Interfaces:
ASN1Value
The PKCS #7 structure EncryptedData.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template for decoding EncryptedData items. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final INTEGER
The default version number.private EncryptedContentInfo
private SEQUENCE
private static final Tag
private static final EncryptedData.Template
private INTEGER
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptedData
(INTEGER version, EncryptedContentInfo encryptedContentInfo) Creates a new EncryptedData.EncryptedData
(EncryptedContentInfo encryptedContentInfo) Creates an EncryptedData with the default version. -
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 implicitTag, 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 EncryptedData.Template
-
Field Details
-
version
-
encryptedContentInfo
-
sequence
-
DEFAULT_VERSION
The default version number. This should always be used unless you really know what you are doing. -
TAG
-
templateInstance
-
-
Constructor Details
-
EncryptedData
Creates a new EncryptedData.- Parameters:
version
- Should usually be DEFAULT_VERSION unless you are being very clever.
-
EncryptedData
Creates an EncryptedData with the default version.
-
-
Method Details
-
getVersion
-
getEncryptedContentInfo
-
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. -
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:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
getTemplate
-