Class ContextDERTag

  • All Implemented Interfaces:
    DERTag

    public class ContextDERTag
    extends AbstractDERTag
    Generic context-specific tag.
    • Field Detail

      • TAG_CLASS

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

      • ContextDERTag

        public ContextDERTag​(int number,
                             boolean isConstructed)
        Creates a new context-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 String name()
        Description copied from interface: DERTag
        Gets the name of the tag.
        Returns:
        tag name.