|
org.netbeans.modules.keyring 1.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeyringProvider
Provider for a keyring.
Should be registered in global lookup.
Providers will be searched in the order in which they are encountered
until one which is 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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean enabled()
char[] read(String key)
key
- the identifier of the key
void 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
|
org.netbeans.modules.keyring 1.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |