public interface KeyringProvider
enabled() is found.
There is a default platform-independent implementation at position 1000
which should always be enabled.
All SPI calls are made from one thread at a time, so providers need not be synchronized.
| Modifier and Type | Method | Description |
|---|---|---|
void |
delete(java.lang.String key) |
Delete a key from the ring.
|
boolean |
enabled() |
Check whether this provider can be used in the current JVM session.
|
char[] |
read(java.lang.String key) |
Read a key from the ring.
|
void |
save(java.lang.String key,
char[] password,
java.lang.String description) |
Save a key to the ring.
|
boolean enabled()
char[] read(java.lang.String key)
key - the identifier of the keyvoid save(java.lang.String key,
char[] password,
java.lang.String description)
key - a key identifierpassword - the password or other sensitive information associated with the key
(elements will be later nulled out)description - a user-visible description of the key (may be null)void delete(java.lang.String key)
key - a key identifierBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.