| Constructor and Description |
|---|
CredentialManagerKeyring()
Creates a new keyring using Windows Credential Manager.
|
| 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.
|
protected java.lang.String |
getTargetName(java.lang.String service,
java.lang.String 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 CredentialManagerKeyring()
throws UnsupportedBackendException
UnsupportedBackendException - if the backend for this implementation is not available.public java.lang.String getBackendName()
KeyringgetBackendName in interface Keyringprotected java.lang.String getTargetName(java.lang.String service,
java.lang.String account)
public 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.