public class UnencryptedMemoryBackend extends KeyringBackend
keyStorePath| Constructor and Description |
|---|
UnencryptedMemoryBackend()
Initializes an instance of UncryptedMemoryBackend.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deletePassword(String service,
String account)
Delete password from key store.
|
String |
getId()
Gets backend ID.
|
String |
getPassword(String service,
String account)
Gets password from key store.
|
boolean |
isKeyStorePathRequired()
Returns true if the backend directory uses some file to store passwords.
|
boolean |
isSupported()
Returns true when the backend is supported.
|
void |
setPassword(String service,
String account,
String password)
Sets password to key store.
|
getKeyStorePath, setKeyStorePathpublic UnencryptedMemoryBackend()
public boolean isSupported()
isSupported in class KeyringBackendpublic boolean isKeyStorePathRequired()
isKeyStorePathRequired in class KeyringBackendpublic String getPassword(String service, String account) throws LockException, PasswordRetrievalException
getPassword in class KeyringBackendservice - Service nameaccount - Account namePasswordRetrievalException - Thrown when an error happened while getting passwordLockException - Thrown when an error happened while getting passwordpublic void setPassword(String service, String account, String password) throws LockException, PasswordSaveException
setPassword in class KeyringBackendservice - Service nameaccount - Account namepassword - PasswordPasswordSaveException - Thrown when an error happened while saving the passwordLockException - Thrown when an error happened while getting passwordpublic void deletePassword(String service, String account) throws LockException, PasswordSaveException
deletePassword in class KeyringBackendservice - Service nameaccount - Account namePasswordSaveException - Thrown when an error happened while saving the passwordLockExceptionpublic String getId()
getId in class KeyringBackendCopyright © 2019 Java Keyring. All rights reserved.