Top Description Methods
com.github.javakeyring.internal

public Interface KeyringBackend

extends AutoCloseable
Known Direct Implementers
com.github.javakeyring.internal.freedesktop.FreedesktopKeyringBackend, com.github.javakeyring.internal.kde.KWalletBackend, com.github.javakeyring.internal.osx.ModernOsxKeychainBackend, com.github.javakeyring.internal.osx.OsxKeychainBackend, com.github.javakeyring.internal.windows.WinCredentialStoreBackend
Imports
com.github.javakeyring.PasswordAccessException

java-keyring backend interface.

Method Summary

Modifier and TypeMethod and Description
public void
deletePassword(String
Service name
service
,
String
Account name
account
)

Deletes password from keystore.

public String

Returns:

Password related to specified service and account
getPassword
(String
Service name
service
,
String
Account name
account
)

Gets password from key store.

public void
setPassword(String
Service name
service
,
String
Account name
account
,
String
Password
password
)

Sets password to key store.

Inherited from java.lang.AutoCloseable:
close

Method Detail

deletePasswordback to summary
public void deletePassword(String service, String account) throws PasswordAccessException

Deletes password from keystore.

Parameters
service:String

Service name

account:String

Account name

Exceptions
PasswordAccessException:
Thrown when an error happened while deleting the password (including if it is not found).
getPasswordback to summary
public String getPassword(String service, String account) throws PasswordAccessException

Gets password from key store.

Parameters
service:String

Service name

account:String

Account name

Returns:String

Password related to specified service and account

Exceptions
PasswordAccessException:
Thrown when an error happened while getting password
setPasswordback to summary
public void setPassword(String service, String account, String password) throws PasswordAccessException

Sets password to key store.

Parameters
service:String

Service name

account:String

Account name

password:String

Password

Exceptions
PasswordAccessException:
Thrown when an error happened while saving the password