public class KeychainCredentialsStorage extends java.lang.Object implements CredentialsStorage
CredentialsStorage.NoneUTF_8| Constructor and Description |
|---|
KeychainCredentialsStorage(CredentialsExtension extension)
Initialze the instance with the required native library references.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCredentials(java.lang.String service)
Clear the stored credentials for the given service name.
|
Credentials |
findCredentials(java.lang.String service)
Find the credentials for the given service name.
|
void |
setCredentials(java.lang.String service,
Credentials credentials)
Set the given credentials object for the specified service.
|
void |
setCredentials(java.lang.String service,
java.lang.String username,
char[] password)
Set the given username and password as credential for the specified service.
|
public KeychainCredentialsStorage(CredentialsExtension extension)
extension - the credentials configuration extensionpublic Credentials findCredentials(java.lang.String service)
CredentialsStoragefindCredentials in interface CredentialsStorageservice - the service namepublic void setCredentials(java.lang.String service,
java.lang.String username,
char[] password)
CredentialsStoragesetCredentials in interface CredentialsStorageservice - the service nameusername - the username to setpassword - the password to setpublic void setCredentials(java.lang.String service,
Credentials credentials)
CredentialsStoragesetCredentials in interface CredentialsStorageservice - the service namecredentials - the credentials objectpublic void clearCredentials(java.lang.String service)
CredentialsStorageclearCredentials in interface CredentialsStorageservice - the service name