Class ApplicationDERTag

  • All Implemented Interfaces:
    DERTag

    public class ApplicationDERTag
    extends AbstractDERTag
    Generic application-specific tag.
    Author:
    Middleware Services
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int TAG_CLASS
      Application class is 01b in first two high-order bits.
      static java.lang.String TAG_NAME
      Generic tag name "APP" for a application-specific type.
    • Constructor Summary

      Constructors 
      Constructor Description
      ApplicationDERTag​(int number, boolean isConstructed)
      Creates a new application-specific tag with given tag number.
    • Field Detail

      • TAG_NAME

        public static final java.lang.String TAG_NAME
        Generic tag name "APP" for a application-specific type.
        See Also:
        Constant Field Values
      • TAG_CLASS

        public static final int TAG_CLASS
        Application class is 01b in first two high-order bits.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ApplicationDERTag

        public ApplicationDERTag​(int number,
                                 boolean isConstructed)
        Creates a new application-specific tag with given tag number.
        Parameters:
        number - Tag number.
        isConstructed - True for constructed tag, false otherwise.
    • Method Detail

      • getTagByte

        public int getTagByte()
        Description copied from interface: DERTag
        Gets the value of this tag for encoding.
        Specified by:
        getTagByte in interface DERTag
        Overrides:
        getTagByte in class AbstractDERTag
        Returns:
        byte value of this tag
      • name

        public java.lang.String name()
        Description copied from interface: DERTag
        Gets the name of the tag.
        Returns:
        tag name.