Package org.mozilla.jss.pkix.crmf
Class EncryptedValue
java.lang.Object
org.mozilla.jss.pkix.crmf.EncryptedValue
- All Implemented Interfaces:
ASN1Value
The CRMF structure EncryptedValue for storing the encrypted
key to be archived.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template class for decoding BER-encoded EncryptedValues. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BIT_STRING
private BIT_STRING
private AlgorithmIdentifier
private AlgorithmIdentifier
private SEQUENCE
private AlgorithmIdentifier
private static final Tag
private static final EncryptedValue.Template
private OCTET_STRING
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptedValue
(AlgorithmIdentifier intendedAlg, AlgorithmIdentifier symmAlg, BIT_STRING encSymmKey, AlgorithmIdentifier keyAlg, OCTET_STRING valueHint, BIT_STRING encValue) -
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.May returnnull
.May returnnull
.May returnnull
.May returnnull
.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static EncryptedValue.Template
May returnnull
.
-
Field Details
-
intendedAlg
-
symmAlg
-
encSymmKey
-
keyAlg
-
valueHint
-
encValue
-
sequence
-
TAG
-
templateInstance
-
-
Constructor Details
-
EncryptedValue
public EncryptedValue(AlgorithmIdentifier intendedAlg, AlgorithmIdentifier symmAlg, BIT_STRING encSymmKey, AlgorithmIdentifier keyAlg, OCTET_STRING valueHint, BIT_STRING encValue) - Parameters:
intendedAlg
- May be null.symmAlg
- May be null.encSymmKey
- May be null.keyAlg
- May be null.valueHint
- May be null.encValue
- May not be null.
-
-
Method Details
-
getIntendedAlg
May returnnull
. -
getSymmAlg
May returnnull
. -
getEncSymmKey
May returnnull
. -
getKeyAlg
May returnnull
. -
getValueHint
May returnnull
. -
getEncValue
-
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
-