@Service public interface Keyring
Modifier and Type | Method and Description |
---|---|
void |
clearPassword(String url,
String username)
Clear the password associated with the given url and username, if any.
|
char[] |
getPassword(String url,
String username)
Retrieve the password associated with the given url and username.
|
void |
savePassword(String url,
String username,
char[] password)
Map the given password to the given url and username.
|
void savePassword(String url, String username, char[] password)
url
- The url for this saved passwordusername
- The username for this saved passwordpassword
- The password to be savedKeyringException
- to indicate password could not be saved due to an errorchar[] getPassword(String url, String username)
url
- The url for the desired passwordusername
- The username for the desired passwordKeyringException
- if error is encountered when attempting to retrieve passwordvoid clearPassword(String url, String username)
url
- The url for the password to be clearedusername
- The username for the password to be clearedKeyringException
- if error is encountered when attempting to retrieve passwordCopyright © 2014. All rights reserved.