public abstract class AbstractAuthenticationHandler extends java.lang.Object implements AuthenticationHandler
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger
Instance of logging for subclasses.
|
protected PrincipalFactory |
principalFactory
Factory to create the principal type.
|
protected ServicesManager |
servicesManager
The services manager instance, as the entry point to the registry.
|
SUCCESSFUL_AUTHENTICATION_HANDLERS
Constructor and Description |
---|
AbstractAuthenticationHandler()
Instantiates a new Abstract authentication handler.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets a unique name for this authentication handler within the Spring context that contains it.
|
void |
setName(java.lang.String name)
Sets the authentication handler name.
|
void |
setPrincipalFactory(PrincipalFactory principalFactory)
Sets principal factory to create principal objects.
|
void |
setServicesManager(ServicesManager servicesManager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate, supports
protected transient org.slf4j.Logger logger
protected PrincipalFactory principalFactory
protected ServicesManager servicesManager
public AbstractAuthenticationHandler()
public java.lang.String getName()
AuthenticationHandler
getName
in interface AuthenticationHandler
public void setName(java.lang.String name)
AuthenticationManager
, and particular implementations
may require uniqueness. Uniqueness is a best
practice generally.name
- Handler name.public void setPrincipalFactory(PrincipalFactory principalFactory)
principalFactory
- the principal factorypublic void setServicesManager(ServicesManager servicesManager)