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
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(InputStream istream) Decodes a SEQUENCE from its BER encoding.decode(Tag implicitTag, InputStream istream) Decodes a SEQUENCE from its BER encoding, where the SEQUENCE itself has an implicit tag.booleanDetermines 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
-
Field Details
-
template
-
-
Constructor Details
-
Template
public Template()
-
-
Method Details
-
tagMatch
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
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:
IOException- If other error occurred.InvalidBERException- If there is an invalid BER encoding.
-
decode
public ASN1Value decode(Tag implicitTag, InputStream istream) throws 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:
IOException- If other error occurred.InvalidBERException- If there is an invalid BER encoding.
-