Package org.mozilla.jss.pkix.crmf
Class EncryptedValue
- java.lang.Object
-
- org.mozilla.jss.pkix.crmf.EncryptedValue
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EncryptedValue.Template
A Template class for decoding BER-encoded EncryptedValues.
-
Constructor Summary
Constructors Constructor Description EncryptedValue(AlgorithmIdentifier intendedAlg, AlgorithmIdentifier symmAlg, BIT_STRING encSymmKey, AlgorithmIdentifier keyAlg, OCTET_STRING valueHint, BIT_STRING encValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using its own base tag.void
encode(Tag implicitTag, java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag.BIT_STRING
getEncSymmKey()
May returnnull
.BIT_STRING
getEncValue()
AlgorithmIdentifier
getIntendedAlg()
May returnnull
.AlgorithmIdentifier
getKeyAlg()
May returnnull
.AlgorithmIdentifier
getSymmAlg()
May returnnull
.Tag
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static EncryptedValue.Template
getTemplate()
OCTET_STRING
getValueHint()
May returnnull
.
-
-
-
Constructor Detail
-
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 Detail
-
getIntendedAlg
public AlgorithmIdentifier getIntendedAlg()
May returnnull
.
-
getSymmAlg
public AlgorithmIdentifier getSymmAlg()
May returnnull
.
-
getEncSymmKey
public BIT_STRING getEncSymmKey()
May returnnull
.
-
getKeyAlg
public AlgorithmIdentifier getKeyAlg()
May returnnull
.
-
getValueHint
public OCTET_STRING getValueHint()
May returnnull
.
-
getEncValue
public BIT_STRING getEncValue()
-
getTag
public Tag 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
public void encode(java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.
-
encode
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.
-
getTemplate
public static EncryptedValue.Template getTemplate()
-
-