public interface CryptoBinaryFormat
binary representation. The
formats FORMAT_ENCODED and FORMAT_COMPACT shall 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.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(net.sf.mmm.crypto.asymmetric.key.AsymmetricKeyPair,
String)| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT_COMPACT
The format for compact binary representation.
|
static String |
FORMAT_ENCODED
The format for the encoded binary representation.
|
static final String FORMAT_ENCODED
length. If you want to
store the raw data in the most efficient way use FORMAT_COMPACT instead.Key.getEncoded(),
Constant Field Valuesstatic final String FORMAT_COMPACT
Copyright © 2001–2019 mmm-Team. All rights reserved.