org.mozilla.jss.asn1

Class OBJECT_IDENTIFIER.Template

Enclosing Class:
OBJECT_IDENTIFIER
Implemented Interfaces:
ASN1Template

public static class OBJECT_IDENTIFIER.Template
extends java.lang.Object
implements ASN1Template

Method Summary

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.
boolean
formMatch(Form form)
Form
getForm()
Tag
getTag()
boolean
tagMatch(Tag tag)
Determines whether the given tag will satisfy this template.

Method Details

decode

public ASN1Value decode(InputStream istream)
            throws IOException,
                   InvalidBERException
Decodes an ASN1Value from the InputStream without an implicit tag.
Specified by:
decode in interface ASN1Template
Parameters:
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.
Specified by:
decode in interface ASN1Template
Parameters:
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.

formMatch

public boolean formMatch(Form form)

getForm

public Form getForm()

getTag

public Tag getTag()

tagMatch

public boolean tagMatch(Tag tag)
Determines whether the given tag will satisfy this template.
Specified by:
tagMatch in interface ASN1Template