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