K - type of SecretKey.public interface SymmetricKeyCreator<K extends SecretKey> extends KeyCreator
KeyCreator for dealing with symmetric cryptographic keys.createKey(String)| Modifier and Type | Method and Description |
|---|---|
default net.sf.mmm.binary.api.Binary |
asBinary(K key) |
byte[] |
asData(K key) |
K |
createKey(byte[] key) |
K |
createKey(String password) |
int |
getKeyLength(K key) |
default void |
verifyKey(K key)
Verify that the given key matches the criteria of this key creator such as
key length. |
getKeyLengthgetAlgorithmK createKey(String password)
password - the secret password.SecretKey.K createKey(byte[] key)
key - the SecretKey as encoded data.SecretKey.default net.sf.mmm.binary.api.Binary asBinary(K key)
key - the SecretKey to serialize.Binary.default void verifyKey(K key)
key length.key - the SecretKey to verify.int getKeyLength(K key)
key - the SecretKey.key length of the given key.Copyright © 2001–2019 mmm-Team. All rights reserved.