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 classEncryptedValue.TemplateA 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 voidencode(java.io.OutputStream ostream)Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, java.io.OutputStream ostream)Write this value's DER encoding to an output stream using an implicit tag.BIT_STRINGgetEncSymmKey()May returnnull.BIT_STRINGgetEncValue()AlgorithmIdentifiergetIntendedAlg()May returnnull.AlgorithmIdentifiergetKeyAlg()May returnnull.AlgorithmIdentifiergetSymmAlg()May returnnull.TaggetTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static EncryptedValue.TemplategetTemplate()OCTET_STRINGgetValueHint()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:ASN1ValueReturns 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.IOExceptionDescription copied from interface:ASN1ValueWrite 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:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.
-
getTemplate
public static EncryptedValue.Template getTemplate()
-
-