Package org.acemq.amqp.crypto
Class Keys
java.lang.Object
org.acemq.amqp.crypto.Keys
Getting an AES key from the shapes one usually arrives in.
-
Method Summary
-
Method Details
-
generate
- Returns:
- a new 256-bit key from the platform's secure random
-
fromBytes
- Parameters:
bytes- 16, 24 or 32 bytes of key material- Returns:
- the key
-
fromBase64
The usual way a key arrives from a secret store or an environment variable.- Parameters:
base64- key material, Base64 encoded- Returns:
- the key
-
toBase64
For writing a generated key into a secret store.- Parameters:
key- the key- Returns:
- its material, Base64 encoded
-