- java.lang.Object
-
- io.github.mmm.binary.BinaryType
-
- io.github.mmm.crypto.CryptoBinary
-
- io.github.mmm.crypto.asymmetric.sign.SignatureBinary
-
- All Implemented Interfaces:
Binary
,Streamable
- Direct Known Subclasses:
SignatureEcBc
,SignatureGeneric
,SignatureRsa
public abstract class SignatureBinary extends CryptoBinary
Simple datatype as container for asignature
. Allows abstraction of actual implementations (such as bouncy-castle) for portability. Further, it is simple and fast to read and store until real semantic parsing and usage is required.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from class io.github.mmm.binary.BinaryType
data
-
Fields inherited from interface io.github.mmm.binary.Binary
EMPTY_BYTE_ARRAY
-
-
Constructor Summary
Constructors Constructor Description SignatureBinary(byte[] data)
The constructor.
-
Method Summary
-
Methods inherited from class io.github.mmm.binary.BinaryType
asStream, equals, format, formatBase64, formatHex, getData, getData, getDataByte, getLength, getMaxLength, getMinLength, hashCode, isZeros, parseBase64, parseHex, save, toBytes, toBytes, toInt, toLong, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.binary.Binary
formatBase64, formatHex
-
-
-
-
Constructor Detail
-
SignatureBinary
public SignatureBinary(byte[] data)
The constructor.- Parameters:
data
- the raw binarydata
.
-
-