|
org.netbeans.modules.keyring 1.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.keyring.Keyring
public class Keyring
Client class for working with stored keys (such as passwords).
The key identifier should be unique for the whole application, so qualify it with any prefixes as needed.
Avoid calling methods on this class from the event dispatch thread, as some provider implementations may need to block while displaying a dialog (e.g. prompting for a master password to access the keyring).
Method Summary | |
---|---|
static void |
delete(String key)
Deletes a key from the ring. |
static char[] |
read(String key)
Reads a key from the ring. |
static void |
save(String key,
char[] password,
String description)
Saves a key to the ring. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static char[] read(String key)
key
- the identifier of the key
public static void save(String key, char[] password, String description)
key
- a key identifierpassword
- the password or other sensitive information associated with the key
(its contents will be nulled out by end of call)description
- a user-visible description of the key (may be null)public static 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 |