org.mozilla.jss.pkix.cms
Class EnvelopedData.Template
java.lang.Object
org.mozilla.jss.pkix.cms.EnvelopedData.Template
- EnvelopedData
- ASN1Template
public static class EnvelopedData.Template
extends java.lang.Object
A template file for decoding a EnvelopedData blob
ASN1Value | decode(InputStream istream) - Decodes an ASN1Value from the InputStream without an implicit tag.
|
ASN1Value | decode(Tag implicitTag, InputStream istream) - Decodes an ASN1Value from the InputStream with the given implicit
tag.
|
Tag | getTag()
|
boolean | tagMatch(Tag tag) - Determines whether the given tag will satisfy this template.
|
decode
public ASN1Value decode(InputStream istream)
throws IOException,
InvalidBERException
Decodes an ASN1Value from the InputStream without an implicit tag.
- decode in interface ASN1Template
istream
- Must support marking (markSupported() == true).
For example, ByteArrayInputStream and BufferedInputStream
support marking, but FileInputStream does not. If your source
does not support marking, you can wrap it in a
BufferedInputStream.
decode
public ASN1Value decode(Tag implicitTag,
InputStream istream)
throws IOException,
InvalidBERException
Decodes an ASN1Value from the InputStream with the given implicit
tag.
- decode in interface ASN1Template
istream
- Must support marking (markSupported() == true).
For example, ByteArrayInputStream and BufferedInputStream
support marking, but FileInputStream does not. If your source
does not support marking, you can wrap it in a
BufferedInputStream.
getTag
public Tag getTag()
tagMatch
public boolean tagMatch(Tag tag)
Determines whether the given tag will satisfy this template.
- tagMatch in interface ASN1Template