Class 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 Detail

      • Template

        public Template()
    • Method Detail

      • tagMatch

        public boolean tagMatch​(Tag tag)
        Description copied from interface: ASN1Template
        Determines whether the given tag will satisfy this template.
        Specified by:
        tagMatch in interface ASN1Template
        Overrides:
        tagMatch in class SEQUENCE.Template
        Parameters:
        tag - Tag.
        Returns:
        True if the given tag will satisfy this template.
      • decode

        public ASN1Value decode​(Tag implicitTag,
                                java.io.InputStream istream)
                         throws java.io.IOException,
                                InvalidBERException
        Description copied from class: SEQUENCE.Template
        Decodes a SEQUENCE from its BER encoding, where the SEQUENCE itself has an implicit tag.
        Specified by:
        decode in interface ASN1Template
        Overrides:
        decode in class SEQUENCE.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.