| Constructor and Description |
|---|
WindowsDPAPIKeyring(java.nio.file.Path keyStore)
Creates a new keyring using Windows DPAPI.
|
| 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.
|
public WindowsDPAPIKeyring(java.nio.file.Path keyStore)
throws UnsupportedBackendException
keyStore - The key store used to save encrypted passwords.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.