Module io.github.mmm.crypto
Class SignatureGeneric
- java.lang.Object
-
- io.github.mmm.binary.BinaryType
-
- io.github.mmm.crypto.CryptoBinary
-
- io.github.mmm.crypto.asymmetric.sign.SignatureBinary
-
- io.github.mmm.crypto.asymmetric.sign.generic.SignatureGeneric
-
- All Implemented Interfaces:
Binary
,Streamable
public class SignatureGeneric extends SignatureBinary
Generic implementation ofSignatureBinary
.- Since:
- 1.0.0
-
-
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 SignatureGeneric(byte[] data)
The constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SignatureGeneric
ofBase64(String base64)
static SignatureGeneric
ofHex(String hex)
-
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
-
SignatureGeneric
public SignatureGeneric(byte[] data)
The constructor.- Parameters:
data
- the rawbinary data
.
-
-
Method Detail
-
ofBase64
public static SignatureGeneric ofBase64(String base64)
- Parameters:
base64
- thedata
asbase64
.- Returns:
- the parsed
SignatureBinary
ornull
in casebase64
wasnull
.
-
ofHex
public static SignatureGeneric ofHex(String hex)
- Parameters:
hex
- thedata
ashex
.- Returns:
- the parsed
SignatureBinary
ornull
in casebase64
wasnull
.
-
-