@Service public interface Keyring
Credentials, securely.
An instance of this class can be obtained from OSGi as a service.
| Modifier and Type | Method and Description |
|---|---|
void |
loadPassword(Credentials credentials)
Loads the password into the given
Credentials. |
boolean |
savePassword(Credentials credentials)
Stores the password from the
Credentials into the keyring. |
void loadPassword(Credentials credentials)
Credentials.
NullPointerException is thrown is Credentials is
null or Credentials.getUserName() is null.boolean savePassword(Credentials credentials)
Credentials into the keyring.
NullPointerException is thrown is Credentials is
null or Credentials.getUserName() is null.
Credentials.getPassword() is null, an emtpy String
password is saved in the keyring.Copyright © 2013. All Rights Reserved.