org.mozilla.jss.SecretDecoderRing

Class Encoding.Template

Enclosing Class:
Encoding
Implemented Interfaces:
ASN1Template

public static class Encoding.Template
extends SEQUENCE.Template

An ASN.1 class for decoding the SecretDecoderRing result. This class is used internally by the SecretDecoderRing. You need not use this class directly in order to use the SecretDecoderRing.

Constructor Summary

Template()

Method Summary

ASN1Value
decode(InputStream istream)
Decodes a SEQUENCE from its BER encoding.
ASN1Value
decode(Tag implicitTag, InputStream istream)
Decodes a SEQUENCE from its BER encoding, where the SEQUENCE itself has an implicit tag.
boolean
tagMatch(Tag tag)
Determines whether the given tag will satisfy this template.

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

addElement, addElement, addElement, addElement, addOptionalElement, addOptionalElement, decode, decode, defaultAt, implicitTagAt, insertElementAt, insertElementAt, insertElementAt, insertElementAt, insertOptionalElementAt, insertOptionalElementAt, isOptionalAt, removeAllElements, removeElementAt, size, tagMatch, templateAt

Constructor Details

Template

public Template()

Method Details

decode

public ASN1Value decode(InputStream istream)
            throws IOException,
                   InvalidBERException
Decodes a SEQUENCE from its BER encoding.
Specified by:
decode in interface ASN1Template
Overrides:
decode in interface SEQUENCE.Template


decode

public ASN1Value decode(Tag implicitTag,
                        InputStream istream)
            throws IOException,
                   InvalidBERException
Decodes a SEQUENCE from its BER encoding, where the SEQUENCE itself has an implicit tag.
Specified by:
decode in interface ASN1Template
Overrides:
decode in interface SEQUENCE.Template


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 SEQUENCE.Template