public abstract class AbstractCredentialProvider extends AbstractLogEnabled implements CredentialProvider, Component
CredentialProvider
, which is configurable.
Extends this class for implementing a CredentialProvider (and implement NonBlockingCredentialProvider
,
BlockingCredentialProvider
or both)Modifier and Type | Field and Description |
---|---|
private String |
_cpModelId |
private String |
_id |
private String |
_label |
private Map<String,Object> |
_paramValues |
Constructor and Description |
---|
AbstractCredentialProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCredentialProviderModelId()
Get the id of the
CredentialProviderModel extension point |
String |
getId()
A unique identifier
|
String |
getLabel()
Get the label of the CredentialProvider
|
Map<String,Object> |
getParameterValues()
Get the values of parameters (from credential provider model)
|
int |
hashCode() |
void |
init(String id,
String cpModelId,
Map<String,Object> paramValues,
String label)
Initialize the credential provider with given parameters' values.
|
getLogger, setLogger
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getUserIdentity, grantAnonymousRequest, isStillConnected, userAllowed, userNotAllowed
private String _cpModelId
private Map<String,Object> _paramValues
public AbstractCredentialProvider()
public String getId()
CredentialProvider
getId
in interface CredentialProvider
public String getLabel()
CredentialProvider
getLabel
in interface CredentialProvider
public String getCredentialProviderModelId()
CredentialProvider
CredentialProviderModel
extension pointgetCredentialProviderModelId
in interface CredentialProvider
public Map<String,Object> getParameterValues()
CredentialProvider
getParameterValues
in interface CredentialProvider
public void init(String id, String cpModelId, Map<String,Object> paramValues, String label)
CredentialProvider
init
in interface CredentialProvider
id
- The unique identifiercpModelId
- The id of credential provider extension pointparamValues
- The parameters' valueslabel
- The specific label of this instance. Can be null