Package de.tsenger.vdstools
Class DerTlv
java.lang.Object
de.tsenger.vdstools.DerTlv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DerTlvfromByteArray(byte[] rawBytes) byte[]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 encodingbytegetTag()byte[]getValue()
-
Constructor Details
-
DerTlv
public DerTlv(byte tag, byte[] value)
-
-
Method Details
-
getEncoded
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.
-
fromByteArray
- Throws:
IOException
-
getTag
public byte getTag() -
getValue
public byte[] getValue()
-