Class SEQUENCE.Template.Element

java.lang.Object
org.mozilla.jss.asn1.SEQUENCE.Template.Element
Enclosing class:
SEQUENCE.Template

static class SEQUENCE.Template.Element extends Object
An element of a SEQUENCE template. For each sub-template, contains the template, its optionality, its implicit tag, and its default value.
  • Field Details

    • doesProduceOutput

      private boolean doesProduceOutput
    • repeatable

      private boolean repeatable
    • optional

      private boolean optional
    • implicitTag

      private Tag implicitTag
    • type

      private ASN1Template type
    • defaultVal

      private ASN1Value defaultVal
  • Constructor Details

    • Element

      public Element(Tag implicitTag, ASN1Template type, boolean optional)
      Creates a new element, which may or may not be optional.
      Parameters:
      implicitTag - Implicit tag.
      type - Type.
      optional - Optional.
    • Element

      public Element(Tag implicitTag, ASN1Template type, boolean optional, boolean doesProduceOutput)
      Creates a new element, which may or may not be optional.
      Parameters:
      implicitTag - Implicit tag.
      type - Type.
      optional - Optional.
      doesProduceOutput - True if produces output.
    • Element

      public Element(Tag implicitTag, ASN1Template type, ASN1Value defaultVal)
      Creates a new element with a default value.
      Parameters:
      implicitTag - Implicit tag.
      type - Type.
      defaultVal - Default value.
  • Method Details

    • producesOutput

      boolean producesOutput()
    • makeRepeatable

      void makeRepeatable()
    • isRepeatable

      boolean isRepeatable()
    • isOptional

      public boolean isOptional()
    • getImplicitTag

      public Tag getImplicitTag()
    • tagMatch

      public boolean tagMatch(Tag tag)
    • getTemplate

      public ASN1Template getTemplate()
    • getDefault

      public ASN1Value getDefault()