org.mozilla.jss.asn1

Class ENUMERATED.Template

Enclosing Class:
ENUMERATED
Implemented Interfaces:
ASN1Template

public static class ENUMERATED.Template
extends INTEGER.Template
implements ASN1Template

A template for decoding ENUMERATED values from their BER encodings. The template reads the value as an INTEGER. It does not check that it is a valid value for the ENUMERATED type.

Method Summary

ASN1Value
decode(Tag tag, InputStream derStream)
Decodes an ASN1Value from the InputStream with the given implicit tag.
boolean
tagMatch(Tag tag)
Determines whether the given tag will satisfy this template.

Methods inherited from class org.mozilla.jss.asn1.INTEGER.Template

decode, decode, tagMatch

Method Details

decode

public ASN1Value decode(Tag tag,
                        InputStream derStream)
            throws InvalidBERException,
                   IOException
Decodes an ASN1Value from the InputStream with the given implicit tag.
Specified by:
decode in interface ASN1Template
Overrides:
decode in interface INTEGER.Template
Parameters:

tagMatch

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