public interface ConfidentialStore
| Modifier and Type | Method and Description |
|---|---|
byte[] |
load(java.lang.String key)
Reverse operation of
store(String, byte[]) |
byte[] |
randomBytes(int size)
Works like
SecureRandom.nextBytes(byte[]). |
void |
store(java.lang.String key,
byte[] payload)
Persists the payload of key to a persisted storage (such as disk.)
The expectation is that the persisted form is secure.
|
void store(java.lang.String key,
byte[] payload)
throws java.io.IOException
java.io.IOExceptionbyte[] load(java.lang.String key)
throws java.io.IOException
store(String, byte[])java.io.IOExceptionbyte[] randomBytes(int size)
SecureRandom.nextBytes(byte[]).
This enables implementations to consult other entropy sources, if it's available.