public class OsxKeychainBackend extends KeyringBackend
keyStorePath| Constructor and Description |
|---|
OsxKeychainBackend() |
| Modifier and Type | Method and Description |
|---|---|
void |
deletePassword(String service,
String account)
Delete a password from the 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 OsxKeychainBackend()
throws BackendNotSupportedException
BackendNotSupportedExceptionpublic boolean isSupported()
isSupported in class KeyringBackendpublic boolean isKeyStorePathRequired()
isKeyStorePathRequired in class KeyringBackendpublic String getPassword(String service, String account) throws PasswordRetrievalException
getPassword in class KeyringBackendservice - Service nameaccount - Account namePasswordRetrievalException - Thrown when an error happened while getting passwordpublic void setPassword(String service, String account, String password) throws PasswordSaveException
setPassword in class KeyringBackendservice - Service nameaccount - Account namepassword - PasswordPasswordSaveException - Thrown when an error happened while saving the passwordpublic void deletePassword(String service, String account) throws PasswordSaveException
deletePassword in class KeyringBackendservice - Service nameaccount - Account namePasswordSaveException - Thrown when an error happened while saving the passwordpublic String getId()
getId in class KeyringBackendCopyright © 2019 Java Keyring. All rights reserved.