Package org.ametys.core.authentication
Class AbstractCredentialProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.authentication.AbstractCredentialProvider
- All Implemented Interfaces:
CredentialProvider
,LogEnabled
,Component
- Direct Known Subclasses:
AbstractMSALCredentialProvider
,AbstractOIDCCredentialProvider
,BasicCredentialProvider
,CASCredentialProvider
,DefinedCredentialProvider
,FormCredentialProvider
,KerberosCredentialProvider
,RemoteUserCredentialProvider
,UserDAO.ImpersonateCredentialProvider
public abstract class AbstractCredentialProvider
extends AbstractLogEnabled
implements CredentialProvider, Component
Abstract implementation of
CredentialProvider
, which is configurable.
Extends this class for implementing a CredentialProvider (and implement NonBlockingCredentialProvider
,
BlockingCredentialProvider
or both)-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the id of theCredentialProviderModel
extension pointgetId()
A unique identifiergetLabel()
Get the label of the CredentialProviderGet the values of parameters (from credential provider model)int
hashCode()
void
Initialize the credential provider with given parameters' values.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.authentication.CredentialProvider
getUserIdentity, grantAnonymousRequest, isStillConnected, userAllowed, userNotAllowed
-
Constructor Details
-
AbstractCredentialProvider
public AbstractCredentialProvider()
-
-
Method Details
-
getId
Description copied from interface:CredentialProvider
A unique identifier- Specified by:
getId
in interfaceCredentialProvider
- Returns:
- The non-null and non-empty identifier
-
getLabel
Description copied from interface:CredentialProvider
Get the label of the CredentialProvider- Specified by:
getLabel
in interfaceCredentialProvider
- Returns:
- The label
-
getCredentialProviderModelId
Description copied from interface:CredentialProvider
Get the id of theCredentialProviderModel
extension point- Specified by:
getCredentialProviderModelId
in interfaceCredentialProvider
- Returns:
- the id of extension point
-
getParameterValues
Description copied from interface:CredentialProvider
Get the values of parameters (from credential provider model)- Specified by:
getParameterValues
in interfaceCredentialProvider
- Returns:
- the parameters' values
-
init
public void init(String id, String cpModelId, Map<String, Object> paramValues, String label) throws ExceptionDescription copied from interface:CredentialProvider
Initialize the credential provider with given parameters' values.- Specified by:
init
in interfaceCredentialProvider
- Parameters:
id
- The unique identifiercpModelId
- The id of credential provider extension pointparamValues
- The parameters' valueslabel
- The specific label of this instance. Can be null- Throws:
Exception
- If an error occurred
-
equals
-
hashCode
-