-
public interface CryptoBinaryFormatInterface for the concept and constants of different formats of abinary representation. The formatsFORMAT_ENCODEDandFORMAT_COMPACTshall always be accepted. For generic implementations that only support a single format both formats can be used synonymously. Specific implementations may also support additional supports such as e.g.AsymmetricKeyPairEc.FORMAT_UNCOMORESSED.- Since:
- 1.0.0
- See Also:
AsymmetricKeyCreator.createPrivateKey(byte[], String),AsymmetricKeyCreator.createPublicKey(byte[]),AsymmetricKeyCreator.createKeyPair(byte[], String),AsymmetricKeyCreator.asData(java.security.PrivateKey, String),AsymmetricKeyCreator.asData(java.security.PublicKey, String),AsymmetricKeyCreator.asData(io.github.mmm.crypto.asymmetric.key.AsymmetricKeyPair, String)
-
-
Field Summary
Fields Modifier and Type Field Description static StringFORMAT_COMPACTThe format for compact binary representation.static StringFORMAT_ENCODEDThe format for the encoded binary representation.
-
-
-
Field Detail
-
FORMAT_ENCODED
static final String FORMAT_ENCODED
The format for the encoded binary representation. This is the most universal, portable and standardized format. However, it is also a large representation according to thelength. If you want to store theraw datain the most efficient way useFORMAT_COMPACTinstead.- See Also:
Key.getEncoded(), Constant Field Values
-
FORMAT_COMPACT
static final String FORMAT_COMPACT
The format for compact binary representation. This is the smallest representation that is supported.- See Also:
- Constant Field Values
-
-