public class FilteredCredentialStore extends Object implements ICredentialStore, IElementConfigurable
| Modifier and Type | Class and Description |
|---|---|
static interface |
FilteredCredentialStore.Predicate |
| Constructor and Description |
|---|
FilteredCredentialStore() |
FilteredCredentialStore(FilteredCredentialStore.Predicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptCredentialScope(ICredentialScope scope)
true if this provider can provide ICredential instances
for the scope. |
void |
clear()
Clear all credentials
|
void |
configure(IElement element) |
ICredential |
getCredential(ICredentialScope scope)
An
ICredential or null to indicate cancellation. scope indicates
the scope where the ICredential must be valid. scope may be null. |
void |
removeCredential(ICredentialScope scope)
Remove the credential for a given scope.
|
void |
setCredential(ICredentialScope scope,
ICredential credential)
Associate a credential with a given scope.
|
public FilteredCredentialStore()
public FilteredCredentialStore(FilteredCredentialStore.Predicate predicate)
public boolean acceptCredentialScope(ICredentialScope scope)
ICredentialProvidertrue if this provider can provide ICredential instances
for the scope.acceptCredentialScope in interface ICredentialProviderpublic void clear()
ICredentialStoreclear in interface ICredentialStorepublic void configure(IElement element) throws ConfigurationException
configure in interface IElementConfigurableConfigurationExceptionpublic ICredential getCredential(ICredentialScope scope)
ICredentialProviderICredential or null to indicate cancellation. scope indicates
the scope where the ICredential must be valid. scope may be null.getCredential in interface ICredentialProviderscope - TODOICredential or null to indicate cancellation.public void removeCredential(ICredentialScope scope)
ICredentialStoreremoveCredential in interface ICredentialStorepublic void setCredential(ICredentialScope scope, ICredential credential)
ICredentialStoresetCredential in interface ICredentialStoreCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.