Class EncryptedKey
java.lang.Object
org.mozilla.jss.pkix.crmf.EncryptedKey
- All Implemented Interfaces:
ASN1Value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Template for decoding BER-encoded EncryptedKeys.static classThe type of EncryptedKey. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EncryptedKey.Typeprivate EncryptedValuestatic final EncryptedKey.Typeprivate ANYprivate Tag////////////////////////////////////////////////////////////////////private static final EncryptedKey.Templateprivate EncryptedKey.Type//////////////////////////////////////////////////////////////////// -
Constructor Summary
ConstructorsConstructorDescriptionEncryptedKey(ANY envelopedData) EncryptedKey(EncryptedValue encryptedValue) //////////////////////////////////////////////////////////////////// -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.Should only be called ifgetTypereturnsENCRYPTED_VALUE.Should only be called ifgetTypereturnsENVELOPED_DATA.getTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static EncryptedKey.TemplategetType()
-
Field Details
-
ENCRYPTED_VALUE
-
ENVELOPED_DATA
-
type
//////////////////////////////////////////////////////////////////// -
encryptedValue
-
envelopedData
-
tag
//////////////////////////////////////////////////////////////////// -
templateInstance
-
-
Constructor Details
-
EncryptedKey
//////////////////////////////////////////////////////////////////// -
EncryptedKey
-
-
Method Details
-
getType
-
getEncryptedValue
Should only be called ifgetTypereturnsENCRYPTED_VALUE. -
getEnvelopedData
Should only be called ifgetTypereturnsENVELOPED_DATA. ANY is returned to prevent a circular dependency between the org.mozilla.jss.pkcs7 package and the org.mozilla.jss.pkix hierarchy. -
getTag
-
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:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-
getTemplate
-