Class AbstractDERTag

    • Field Detail

      • tagNo

        private final int tagNo
        Tag number.
      • constructed

        private final boolean constructed
        Flag indicating whether value is primitive or constructed.
    • Constructor Detail

      • AbstractDERTag

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

      • getTagNo

        public int getTagNo()
        Description copied from interface: DERTag
        Gets the decimal value of the tag.
        Specified by:
        getTagNo in interface DERTag
        Returns:
        decimal tag number.
      • isConstructed

        public boolean isConstructed()
        Description copied from interface: DERTag
        Determines whether the tag is constructed or primitive.
        Specified by:
        isConstructed in interface DERTag
        Returns:
        true if constructed, false if primitive.
      • getTagByte

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