AbstractJavaKeyStoreProvider, UserProvider@Public
@Unstable
public abstract class CredentialProvider
extends java.lang.Object
CredentialProvider implementations must be thread safe.| Modifier and Type | Class | Description |
|---|---|---|
static class |
CredentialProvider.CredentialEntry |
The combination of both the alias and the actual credential value.
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CLEAR_TEXT_FALLBACK |
| Constructor | Description |
|---|---|
CredentialProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract CredentialProvider.CredentialEntry |
createCredentialEntry(java.lang.String name,
char[] credential) |
Create a new credential.
|
abstract void |
deleteCredentialEntry(java.lang.String name) |
Delete the given credential.
|
abstract void |
flush() |
Ensures that any changes to the credentials are written to persistent
store.
|
abstract java.util.List<java.lang.String> |
getAliases() |
Get the aliases for all credentials.
|
abstract CredentialProvider.CredentialEntry |
getCredentialEntry(java.lang.String alias) |
Get the credential entry for a specific alias.
|
boolean |
isTransient() |
Indicates whether this provider represents a store
that is intended for transient use - such as the UserProvider
is.
|
boolean |
needsPassword() |
Does this provider require a password? This means that a password is
required for normal operation, and it has not been found through normal
means.
|
java.lang.String |
noPasswordError() |
If a password for the provider is needed, but is not provided, this will
return an error message and instructions for supplying said password to
the provider.
|
java.lang.String |
noPasswordWarning() |
If a password for the provider is needed, but is not provided, this will
return a warning and instructions for supplying said password to the
provider.
|
public static final java.lang.String CLEAR_TEXT_FALLBACK
public boolean isTransient()
public abstract void flush()
throws java.io.IOException
java.io.IOException - raised on errors performing I/O.public abstract CredentialProvider.CredentialEntry getCredentialEntry(java.lang.String alias) throws java.io.IOException
alias - the name of a specific credentialjava.io.IOException - raised on errors performing I/O.public abstract java.util.List<java.lang.String> getAliases()
throws java.io.IOException
java.io.IOException - raised on errors performing I/O.public abstract CredentialProvider.CredentialEntry createCredentialEntry(java.lang.String name, char[] credential) throws java.io.IOException
name - the alias of the credentialcredential - the credential value for the alias.java.io.IOException - raised on errors performing I/O.public abstract void deleteCredentialEntry(java.lang.String name)
throws java.io.IOException
name - the alias of the credential to deletejava.io.IOException - raised on errors performing I/O.public boolean needsPassword()
throws java.io.IOException
java.io.IOException - raised on errors performing I/O.public java.lang.String noPasswordWarning()
public java.lang.String noPasswordError()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.