Class SEQUENCE

java.lang.Object
org.mozilla.jss.asn1.SET
org.mozilla.jss.asn1.SEQUENCE
All Implemented Interfaces:
ASN1Value

public class SEQUENCE extends SET
An ASN.1 SEQUENCE. This class is an ordered collection of ASN.1 values. It has an interface similar to a Java Vector. Null entries may be added; they will be skipped when encoded.
  • Field Details

    • TAG

      public static final Tag TAG
  • Constructor Details

    • SEQUENCE

      public SEQUENCE()
  • Method Details

    • getTag

      public Tag getTag()
      Description copied from interface: ASN1Value
      Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
      Specified by:
      getTag in interface ASN1Value
      Overrides:
      getTag in class SET
      Returns:
      Base tag.
    • getTemplate

      public static SEQUENCE.Template getTemplate()
    • encode

      public void encode(Tag implicitTag, OutputStream ostream) throws IOException
      Writes the DER encoding to the given output stream, using the given implicit tag.
      Specified by:
      encode in interface ASN1Value
      Overrides:
      encode in class SET
      Parameters:
      implicitTag - Implicit tag.
      ostream - Output stream.
      Throws:
      IOException - If an error occurred.
    • main

      public static void main(String[] args)