public interface KeyringProvider
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 and Description |
---|---|
void |
delete(String key)
Delete a key from the ring.
|
boolean |
enabled()
Check whether this provider can be used in the current JVM session.
|
char[] |
read(String key)
Read a key from the ring.
|
void |
save(String key,
char[] password,
String description)
Save a key to the ring.
|
boolean enabled()
char[] read(String key)
key
- the identifier of the keyvoid save(String key, char[] password, 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(String key)
key
- a key identifier