org.mozilla.jss.pkix.cms
Class EncryptedData
java.lang.Object
org.mozilla.jss.pkix.cms.EncryptedData
- ASN1Value
public class EncryptedData
extends java.lang.Object
The PKCS #7 structure EncryptedData.
DEFAULT_VERSION
public static final INTEGER DEFAULT_VERSION
The default version number. This should always be used unless
you really know what you are doing.
EncryptedData
public EncryptedData(INTEGER version,
EncryptedContentInfo encryptedContentInfo)
Creates a new EncryptedData.
version
- Should usually be DEFAULT_VERSION unless you are being
very clever.
EncryptedData
public EncryptedData(EncryptedContentInfo encryptedContentInfo)
Creates an EncryptedData with the default version.
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getTag
public Tag getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value
getVersion
public INTEGER getVersion()