|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface ICredentialsManager
A service that manages CredentialsConfigurations, providing them so they can be associated with
ConnectionParameters, recording which credentials are authenticated and in use, and serializing those
credential configurations to disk.
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
| Method Summary | |
|---|---|
void |
addCredentialsManagerListener(CredentialsManagerListener listener)
Adds a listener to this credentials manager |
void |
clearAuthenticated()
Marks all CredentialsConfigurations as unauthenticated in this session. |
void |
clearAuthenticated(java.lang.String credentialsId)
Marks a specific Credentialsconfiguration as unauthenticated in this session |
java.lang.String |
createNewName()
|
CredentialsConfiguration |
findCredentialsConfigurationByID(java.lang.String credentialsID)
Locate a set of CredentialsConfigurations from this repository identified by the supplied id. |
java.util.Collection<CredentialsConfiguration> |
getAllCredentials()
|
void |
invalidate(java.lang.String credentialsID)
Clears the password and unauthenticates a specific credential |
boolean |
isAuthenticatedInthisSession(java.lang.String configurationID)
|
boolean |
isPasswordSaveable()
|
void |
remove(java.lang.String credentialsConfigurationID)
Remove a specific CredentialsConfiguration |
void |
setAuthenticatedInThisSession(CredentialsConfiguration configuration,
boolean success)
Deprecated. clients should use update(CredentialsConfiguration, boolean) specifying "true" to force
a credential into the authenticated cache, as this method does not fire events. |
void |
update(CredentialsConfiguration configuration)
Updates the supplied configuration in this repository. |
void |
update(CredentialsConfiguration configuration,
boolean authenticated)
Updates the supplied configuration in this repository. |
| Field Detail |
|---|
static final java.lang.String COPYRIGHT
| Method Detail |
|---|
void addCredentialsManagerListener(CredentialsManagerListener listener)
listener - the listener to add
@Deprecated
void setAuthenticatedInThisSession(CredentialsConfiguration configuration,
boolean success)
update(CredentialsConfiguration, boolean) specifying "true" to force
a credential into the authenticated cache, as this method does not fire events.
CredentialsConfiguration as authenticated/unauthenticated in this session.
configuration - the credentials configuration to mark as authenticatedsuccess - whether the credential should be marked as authenticatedboolean isAuthenticatedInthisSession(java.lang.String configurationID)
configurationID - the credential ID to test
java.lang.String createNewName()
void clearAuthenticated()
CredentialsConfigurations as unauthenticated in this session.
void clearAuthenticated(java.lang.String credentialsId)
Credentialsconfiguration as unauthenticated in this session
credentialsId - the ID of the CredentialsConfiguration to mark as unauthenticatedjava.util.Collection<CredentialsConfiguration> getAllCredentials()
Collection containing all known CredentialsConfigurationvoid remove(java.lang.String credentialsConfigurationID)
CredentialsConfiguration
credentialsConfigurationID - ID of the credentials configuration to removeboolean isPasswordSaveable()
void invalidate(java.lang.String credentialsID)
credentialsID - the ID of the credential to invalidate.CredentialsConfiguration findCredentialsConfigurationByID(java.lang.String credentialsID)
CredentialsConfigurations from this repository identified by the supplied id.
findCredentialsConfigurationByID in interface ICredentialsConfigurationStoreCredentialsConfiguration or null if none can be found with the specified ID.void update(CredentialsConfiguration configuration)
update in interface ICredentialsConfigurationStoreconfiguration - configuration to write, must not be null.
void update(CredentialsConfiguration configuration,
boolean authenticated)
configuration - configuration to write, must not be null.authenticated - whether the new configuration is considered to be authenticated
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||