|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anwrt.anycontent.authentication.AuthenticationManager
Abstract superclass of all AuthenticationManager.
The role of an AuthenticationManager is to provide system with user
credentials.
Implementations may cover HTTP authentication, SSO, ...
| Constructor Summary | |
AuthenticationManager()
|
|
| Method Summary | |
abstract boolean |
accept(Request request)
Mathod called by AuthenticateAction before asking for credentials. |
abstract void |
allowed(Request request,
Response response,
Redirector redirector)
Mathod called by AuthenticateAction after authentication process succeeded |
abstract void |
configure(Configuration configuration)
Configuration of this AuthenticationManager. |
abstract Credentials |
getCredentials(java.util.Map objectModel,
Redirector redirector)
Method called by AuthenticateAction each time a request need authentication. |
abstract void |
notAllowed(Request request,
Response response,
Redirector redirector)
Method called by AuthenticateAction each a user could not get authenticated. |
protected void |
redirect(Request request,
Redirector redirector,
java.lang.String redirectUrl,
boolean internal)
Helper method provided for request redirection in notAllowed method For internal redirect (i.e. forward), set internal to true, for a classical "sendRedirect", set internal to false. |
abstract boolean |
validate(java.util.Map objectModel,
Redirector redirector)
Validates this AuthenticationManager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AuthenticationManager()
| Method Detail |
public abstract void configure(Configuration configuration)
throws ConfigurationException
configuration - the Configuration persisted in the WEB-INF/config/authentication.xml file
ConfigurationException - if something wring occurs during configuration (bad parameters values, ...)
public abstract boolean validate(java.util.Map objectModel,
Redirector redirector)
throws java.lang.Exception
objectModel - the cocoon object model.redirector - the cocoon Redirector that can be used for redirecting response.
java.lang.Exception - if something wrong occurspublic abstract boolean accept(Request request)
request - the current Request
public abstract Credentials getCredentials(java.util.Map objectModel,
Redirector redirector)
throws java.lang.Exception
objectModel - the cocoon object model.redirector - the cocoon redirector.
java.lang.Exception - if something wrong occurs
public abstract void notAllowed(Request request,
Response response,
Redirector redirector)
throws java.lang.Exception
request - the HttpRequest.response - the HttpResponse.redirector - the cocoon Redirector that can be used for redirecting response.
java.lang.Exception - if something wrong occurs
public abstract void allowed(Request request,
Response response,
Redirector redirector)
request - the HttpRequest.response - the HttpResponse.redirector - the cocoon Redirector that can be used for redirecting response.
protected final void redirect(Request request,
Redirector redirector,
java.lang.String redirectUrl,
boolean internal)
throws ProcessingException,
java.io.IOException
request - the HttpRequest.redirector - the cocoon redirector.redirectUrl - the application relative url we want to redirect to.internal - true for silent internal redirection.
java.io.IOException - probleme while reading resource
ProcessingException - problem while processing redirection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||