Package org.mozilla.jss.pkix.crmf
Class EncryptedKey
java.lang.Object
org.mozilla.jss.pkix.crmf.EncryptedKey
- All Implemented Interfaces:
ASN1Value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template for decoding BER-encoded EncryptedKeys.static class
The type of EncryptedKey. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EncryptedKey.Type
private EncryptedValue
static final EncryptedKey.Type
private ANY
private Tag
private static final EncryptedKey.Template
private EncryptedKey.Type
-
Constructor Summary
Constructors -
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.Should only be called ifgetType
returnsENCRYPTED_VALUE
.Should only be called ifgetType
returnsENVELOPED_DATA
.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static EncryptedKey.Template
getType()
-
Field Details
-
ENCRYPTED_VALUE
-
ENVELOPED_DATA
-
type
-
encryptedValue
-
envelopedData
-
tag
-
templateInstance
-
-
Constructor Details
-
EncryptedKey
-
EncryptedKey
-
-
Method Details
-
getType
-
getEncryptedValue
Should only be called ifgetType
returnsENCRYPTED_VALUE
. -
getEnvelopedData
Should only be called ifgetType
returnsENVELOPED_DATA
. ANY is returned to prevent a circular dependency between the org.mozilla.jss.pkcs7 package and the org.mozilla.jss.pkix hierarchy. -
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
-