Class Encoding.Template
- java.lang.Object
-
- org.mozilla.jss.asn1.SEQUENCE.Template
-
- org.mozilla.jss.SecretDecoderRing.Encoding.Template
-
- All Implemented Interfaces:
ASN1Template
- Enclosing class:
- Encoding
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
Constructors Constructor Description Template()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ASN1Valuedecode(java.io.InputStream istream)Decodes a SEQUENCE from its BER encoding.ASN1Valuedecode(Tag implicitTag, java.io.InputStream istream)Decodes a SEQUENCE from its BER encoding, where the SEQUENCE itself has an implicit tag.booleantagMatch(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, defaultAt, implicitTagAt, insertElementAt, insertElementAt, insertElementAt, insertElementAt, insertOptionalElementAt, insertOptionalElementAt, isOptionalAt, removeAllElements, removeElementAt, size, templateAt
-
-
-
-
Method Detail
-
tagMatch
public boolean tagMatch(Tag tag)
Description copied from interface:ASN1TemplateDetermines whether the given tag will satisfy this template.- Specified by:
tagMatchin interfaceASN1Template- Overrides:
tagMatchin classSEQUENCE.Template- Parameters:
tag- Tag.- Returns:
- True if the given tag will satisfy this template.
-
decode
public ASN1Value decode(java.io.InputStream istream) throws java.io.IOException, InvalidBERException
Description copied from class:SEQUENCE.TemplateDecodes a SEQUENCE from its BER encoding.- Specified by:
decodein interfaceASN1Template- Overrides:
decodein classSEQUENCE.Template- Parameters:
istream- Input stream.- Returns:
- ASN.1 value.
- Throws:
java.io.IOException- If other error occurred.InvalidBERException- If there is an invalid BER encoding.
-
decode
public ASN1Value decode(Tag implicitTag, java.io.InputStream istream) throws java.io.IOException, InvalidBERException
Description copied from class:SEQUENCE.TemplateDecodes a SEQUENCE from its BER encoding, where the SEQUENCE itself has an implicit tag.- Specified by:
decodein interfaceASN1Template- Overrides:
decodein classSEQUENCE.Template- Parameters:
implicitTag- Tag.istream- Input stream.- Returns:
- ASN.1 value.
- Throws:
java.io.IOException- If other error occurred.InvalidBERException- If there is an invalid BER encoding.
-
-