Package com.github.javakeyring.internal
Interface KeyringBackend
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
FreedesktopKeyringBackend,KWalletBackend,ModernOsxKeychainBackend,OsxKeychainBackend,WinCredentialStoreBackend
java-keyring backend interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeletePassword(String service, String account) Deletes password from keystore.getPassword(String service, String account) Gets password from key store.voidsetPassword(String service, String account, String password) Sets password to key store.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
getPassword
Gets password from key store.- Parameters:
service- Service nameaccount- Account name- Returns:
- Password related to specified service and account
- Throws:
PasswordAccessException- Thrown when an error happened while getting password
-
setPassword
Sets password to key store.- Parameters:
service- Service nameaccount- Account namepassword- Password- Throws:
PasswordAccessException- Thrown when an error happened while saving the password
-
deletePassword
Deletes password from keystore.- Parameters:
service- Service nameaccount- Account name- Throws:
PasswordAccessException- Thrown when an error happened while deleting the password (including if it is not found).
-