| Constructor and Description |
|---|
KeychainKeyring()
Creates a new keyring using MacOS Keychain.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBackendName()
Gets the name of the backend.
|
java.lang.String |
getPassword(java.lang.String service,
java.lang.String account)
Gets a password for the specified service and account.
|
void |
setPassword(java.lang.String service,
java.lang.String account,
java.lang.String password)
Sets a password for the specified service and account.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, validateAccount, validatePassword, validateServicepublic KeychainKeyring()
throws UnsupportedBackendException
UnsupportedBackendException - if the backend for this implementation is not available.public java.lang.String getBackendName()
KeyringgetBackendName in interface Keyringpublic java.lang.String getPassword(java.lang.String service,
java.lang.String account)
throws PasswordAccessException
KeyringgetPassword in interface Keyringservice - The service.account - The account.PasswordAccessException - if any exception occurs while getting the password.public void setPassword(java.lang.String service,
java.lang.String account,
java.lang.String password)
throws PasswordAccessException
KeyringsetPassword in interface Keyringservice - The service.account - The account.password - The password or null to remove.PasswordAccessException - if any exception occurs while saving the password.