public interface CredentialsStorage
| Modifier and Type | Interface and Description |
|---|---|
static class |
CredentialsStorage.None
NoOp implementation of a credential storage.
|
| Modifier and Type | Field and Description |
|---|---|
static java.nio.charset.Charset |
UTF_8
The default charset to use for credential storage.
|
| 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.
|
static final java.nio.charset.Charset UTF_8
Credentials findCredentials(java.lang.String service) throws CredentialsException
service - the service nameCredentialsException - error finding the credentialsvoid setCredentials(java.lang.String service,
java.lang.String username,
char[] password)
throws CredentialsException
service - the service nameusername - the username to setpassword - the password to setCredentialsException - error storing the credentialsvoid setCredentials(java.lang.String service,
Credentials credentials)
throws CredentialsException
service - the service namecredentials - the credentials objectCredentialsException - error storing the credentialsvoid clearCredentials(java.lang.String service)
throws CredentialsException
service - the service nameCredentialsException - error clearing the credentials