Interface DERTag

All Known Implementing Classes:
AbstractDERTag, ApplicationDERTag, ContextDERTag, CustomDERTag, UniversalDERTag

public interface DERTag
Describes the tag of a DER-encoded type.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Constructed tags should have the 6th bit set.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the value of this tag for encoding.
    int
    Gets the decimal value of the tag.
    boolean
    Determines whether the tag is constructed or primitive.
    Gets the name of the tag.
  • Field Details

    • ASN_CONSTRUCTED

      static final int ASN_CONSTRUCTED
      Constructed tags should have the 6th bit set.
      See Also:
  • Method Details

    • getTagNo

      int getTagNo()
      Gets the decimal value of the tag.
      Returns:
      decimal tag number.
    • name

      String name()
      Gets the name of the tag.
      Returns:
      tag name.
    • isConstructed

      boolean isConstructed()
      Determines whether the tag is constructed or primitive.
      Returns:
      true if constructed, false if primitive.
    • getTagByte

      int getTagByte()
      Gets the value of this tag for encoding.
      Returns:
      byte value of this tag