Class DerTlv


  • public class DerTlv
    extends Object
    • Constructor Detail

      • DerTlv

        public DerTlv​(byte tag,
                      byte[] value)
    • Method Detail

      • getEncoded

        public byte[] getEncoded()
                          throws IOException
        wraps the given data (Value) in a DER TLV object with free choice of the tag Length will be calculated as defined in ASN.1 DER length encoding
        Returns:
        value with added tag and length
        Throws:
        IOException - on encoding error.
      • getTag

        public byte getTag()
      • getValue

        public byte[] getValue()