public class Keyring extends Object
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).
public static char[] read(String key)
key
- the identifier of the keypublic 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 identifierBuilt on April 14 2012. | Portions Copyright 1997-2012 Sun Microsystems, Inc. All rights reserved.