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 classA Template class for decoding BER-encoded EncryptedValues. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BIT_STRINGprivate BIT_STRINGprivate AlgorithmIdentifierprivate AlgorithmIdentifierprivate SEQUENCEprivate AlgorithmIdentifierprivate static final Tagprivate static final EncryptedValue.Templateprivate OCTET_STRING -
Constructor Summary
ConstructorsConstructorDescriptionEncryptedValue(AlgorithmIdentifier intendedAlg, AlgorithmIdentifier symmAlg, BIT_STRING encSymmKey, AlgorithmIdentifier keyAlg, OCTET_STRING valueHint, BIT_STRING encValue) -
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.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.TemplateMay 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:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
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
-