public interface Authenticator extends ApplicationScopedComponent
| Modifier and Type | Method and Description |
|---|---|
AuthenticationSession |
authenticate(AuthenticationRequest request,
String code) |
boolean |
canAuthenticate(Class<? extends AuthenticationRequest> authenticationRequestClass)
Whether the provided
AuthenticationRequest is recognized by this
Authenticator. |
boolean |
isValid(AuthenticationRequest request)
Deprecated.
|
init, shutdownboolean canAuthenticate(Class<? extends AuthenticationRequest> authenticationRequestClass)
AuthenticationRequest is recognized by this
Authenticator.@Deprecated boolean isValid(AuthenticationRequest request)
This method is only ever called from AuthenticatorAbstract, and as such should
not be defined as part of the API.
TODO: remove in 2.0.0 [ISIS-292]
AuthenticationSession authenticate(AuthenticationRequest request, String code)
code - - a hint; is guaranteed to be unique, but the authenticator
decides whether to use it or not.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.