public abstract class AuthenticatorAbstract extends Object implements Authenticator
| Constructor and Description |
|---|
AuthenticatorAbstract(IsisConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationSession |
authenticate(AuthenticationRequest request,
String code)
Default implementation returns a
SimpleSession; can be overridden
if required. |
IsisConfiguration |
getConfiguration() |
void |
init()
Indicates to the component that it is to initialise itself.
|
abstract boolean |
isValid(AuthenticationRequest request)
Whether this
Authenticator is valid in the running context (and
optionally with respect to the provided AuthenticationRequest). |
void |
shutdown()
Indicates to the component that it will no longer be used and should shut
itself down cleanly.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanAuthenticatepublic AuthenticatorAbstract(IsisConfiguration configuration)
public void init()
ApplicationScopedComponentinit in interface ApplicationScopedComponentpublic void shutdown()
ApplicationScopedComponentshutdown in interface ApplicationScopedComponentpublic AuthenticationSession authenticate(AuthenticationRequest request, String code)
SimpleSession; can be overridden
if required.authenticate in interface Authenticatorcode - - a hint; is guaranteed to be unique, but the authenticator
decides whether to use it or not.public abstract boolean isValid(AuthenticationRequest request)
Authenticator is valid in the running context (and
optionally with respect to the provided AuthenticationRequest).
For example, the ExplorationAuthenticator (in the default runtime) is only available for authentication if running in exploration mode.
TODO: [ISIS-292] should change visibility to protected when remove from the API.
isValid in interface Authenticatorpublic IsisConfiguration getConfiguration()
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.