Package de.tsenger.vdstools.vds
Class VdsSignature
- java.lang.Object
-
- de.tsenger.vdstools.vds.VdsSignature
-
public class VdsSignature extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static byteTAG
-
Constructor Summary
Constructors Constructor Description VdsSignature(byte[] plainSignatureBytes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VdsSignaturefromByteArray(byte[] rawBytes)byte[]getDerSignatureBytes()Returns signature in format ECDSASignature ::= SEQUENCE { r INTEGER, s INTEGER }byte[]getEncoded()byte[]getPlainSignatureBytes()Returns signature bytes in plain format: r||s
-
-
-
Field Detail
-
TAG
public static final byte TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDerSignatureBytes
public byte[] getDerSignatureBytes()
Returns signature in format ECDSASignature ::= SEQUENCE { r INTEGER, s INTEGER }- Returns:
- ASN1 DER encoded signature as byte array
-
getPlainSignatureBytes
public byte[] getPlainSignatureBytes()
Returns signature bytes in plain format: r||s- Returns:
- r||s signature byte array
-
getEncoded
public byte[] getEncoded() throws IOException- Throws:
IOException
-
fromByteArray
public static VdsSignature fromByteArray(byte[] rawBytes) throws IOException
- Throws:
IOException
-
-