Class AbstractDERType

    • Field Detail

      • SHORT_FORM_INT_LENGTH

        private static final int SHORT_FORM_INT_LENGTH
        Length of short form integers.
        See Also:
        Constant Field Values
      • derTag

        private final int derTag
        Constructed tag.
    • Constructor Detail

      • AbstractDERType

        public AbstractDERType​(DERTag tag)
        Creates a new abstract der type.
        Parameters:
        tag - to encode for this type
    • Method Detail

      • encode

        protected byte[] encode​(byte[]... items)
        DER encodes the supplied items with the tag associated with this type. If the length is greater than 127 bytes the long form is always expressed using 4 bytes.
        Parameters:
        items - to encode
        Returns:
        DER encoded items