public class AuthenticationManagerStandard extends Object implements AuthenticationManager, DebuggableWithTitle
| Constructor and Description |
|---|
AuthenticationManagerStandard(IsisConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthenticator(Authenticator authenticator)
Adds an
Authenticator. |
protected void |
addAuthenticatorToStart(Authenticator authenticator)
Adds an
Authenticator to the start of the list (not API). |
protected void |
addDefaultAuthenticators()
optional hook method
|
AuthenticationSession |
authenticate(AuthenticationRequest request)
Caches and returns an authentication
AuthenticationSession if the
request is valid; otherwise returns
null. |
void |
closeSession(AuthenticationSession session) |
void |
debugData(DebugBuilder debug)
Debug details describing the object being investigated
|
String |
debugTitle()
The title for the debug information
|
List<Authenticator> |
getAuthenticators() |
protected IsisConfiguration |
getConfiguration() |
RandomCodeGenerator |
getRandomCodeGenerator()
The
RandomCodeGenerator in use. |
List<Registrar> |
getRegistrars() |
void |
init()
|
boolean |
isSessionValid(AuthenticationSession session)
Whether the provided
AuthenticationSession is still valid. |
boolean |
register(RegistrationDetails registrationDetails) |
void |
setAuthenticators(List<Authenticator> authenticators)
Provide direct injection.
|
void |
setRandomCodeGenerator(RandomCodeGenerator randomCodeGenerator)
For injection; will
default otherwise. |
void |
shutdown()
Indicates to the component that it will no longer be used and should shut
itself down cleanly.
|
boolean |
supportsRegistration(Class<? extends RegistrationDetails> registrationDetailsClass) |
String |
toString() |
public AuthenticationManagerStandard(IsisConfiguration configuration)
public final void init()
init in interface ApplicationScopedComponentprotected void addDefaultAuthenticators()
public void shutdown()
ApplicationScopedComponentshutdown in interface ApplicationScopedComponentpublic final AuthenticationSession authenticate(AuthenticationRequest request)
AuthenticationManagerAuthenticationSession if the
request is valid; otherwise returns
null.authenticate in interface AuthenticationManagerpublic final boolean isSessionValid(AuthenticationSession session)
AuthenticationManagerAuthenticationSession is still valid.isSessionValid in interface AuthenticationManagerpublic void closeSession(AuthenticationSession session)
closeSession in interface AuthenticationManagerpublic final void addAuthenticator(Authenticator authenticator)
Authenticator.
Use either this or alternatively inject
the full list of Authenticators.
protected void addAuthenticatorToStart(Authenticator authenticator)
Authenticator to the start of the list (not API).public void setAuthenticators(List<Authenticator> authenticators)
Use either this or programmatically
addAuthenticator(Authenticator).
public List<Authenticator> getAuthenticators()
public boolean register(RegistrationDetails registrationDetails)
register in interface AuthenticationManagerpublic boolean supportsRegistration(Class<? extends RegistrationDetails> registrationDetailsClass)
supportsRegistration in interface AuthenticationManagerpublic List<Registrar> getRegistrars()
public RandomCodeGenerator getRandomCodeGenerator()
RandomCodeGenerator in use.public void setRandomCodeGenerator(RandomCodeGenerator randomCodeGenerator)
default otherwise.public String debugTitle()
DebuggableWithTitledebugTitle in interface DebuggableWithTitlepublic void debugData(DebugBuilder debug)
DebuggabledebugData in interface Debuggableprotected IsisConfiguration getConfiguration()
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.