|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.webapps.authentication.components.DefaultAuthenticationManager
public class DefaultAuthenticationManager
This is the basis authentication component.
Field Summary | |
---|---|
protected Map |
authenticators
Deprecated. Instantiated authenticators |
protected Context |
context
Deprecated. The context |
protected SitemapConfigurationHolder |
holder
Deprecated. The manager for the authentication handlers |
protected ServiceManager |
manager
Deprecated. The Service Manager |
protected SourceResolver |
resolver
Deprecated. The Source Resolver |
static String |
SESSION_ATTRIBUTE_USER_STATUS
Deprecated. The name of the session attribute storing the user status |
protected XPathProcessor |
xpathProcessor
Deprecated. The xpath processor |
Fields inherited from interface org.apache.cocoon.webapps.authentication.AuthenticationManager |
---|
ROLE |
Constructor Summary | |
---|---|
DefaultAuthenticationManager()
Deprecated. |
Method Summary | |
---|---|
boolean |
checkAuthentication(Redirector redirector,
String handlerName,
String applicationName)
Deprecated. Is the current user authenticated for the given handler? |
void |
configure(SitemapConfigurationHolder holder)
Deprecated. Set the sitemap configuration containing the handlers |
void |
contextualize(Context context)
Deprecated. |
SessionContext |
createApplicationContext(String name,
String loadURI,
String saveURI)
Deprecated. Create Application Context. |
void |
dispose()
Deprecated. |
String |
getForwardingURI(String handlerName)
Deprecated. |
static RequestState |
getRequestState(Context context)
Deprecated. |
RequestState |
getState()
Deprecated. Get the current state of authentication |
UserHandler |
isAuthenticated(String handlerName)
Deprecated. Is the current user authenticated for the given handler? |
UserHandler |
login(String handlerName,
String applicationName,
SourceParameters parameters)
Deprecated. Try to login the user. |
void |
logout(String handlerName,
int mode)
Deprecated. Perform a logout of the user. |
protected Authenticator |
lookupAuthenticator(HandlerConfiguration config)
Deprecated. The authenticator used to authenticate a user |
protected void |
releaseAuthenticator(Authenticator authenticator,
HandlerConfiguration config)
Deprecated. Release the used authenticator |
void |
service(ServiceManager manager)
Deprecated. Serviceable |
protected void |
setState(RequestState status)
Deprecated. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SESSION_ATTRIBUTE_USER_STATUS
protected SitemapConfigurationHolder holder
protected ServiceManager manager
protected SourceResolver resolver
protected Context context
protected Map authenticators
protected XPathProcessor xpathProcessor
Constructor Detail |
---|
public DefaultAuthenticationManager()
Method Detail |
---|
public void configure(SitemapConfigurationHolder holder) throws ConfigurationException
configure
in interface SitemapConfigurable
ConfigurationException
public UserHandler login(String handlerName, String applicationName, SourceParameters parameters) throws ProcessingException
AuthenticationManager
null
is returned.
login
in interface AuthenticationManager
ProcessingException
protected void releaseAuthenticator(Authenticator authenticator, HandlerConfiguration config)
protected Authenticator lookupAuthenticator(HandlerConfiguration config) throws ProcessingException
ProcessingException
public boolean checkAuthentication(Redirector redirector, String handlerName, String applicationName) throws IOException, ProcessingException
AuthenticationManager
RequestState
is updated to the provided information (handler and application).
checkAuthentication
in interface AuthenticationManager
IOException
ProcessingException
public String getForwardingURI(String handlerName) throws ProcessingException
ProcessingException
public UserHandler isAuthenticated(String handlerName) throws ProcessingException
AuthenticationManager
isAuthenticated
in interface AuthenticationManager
ProcessingException
public void logout(String handlerName, int mode) throws ProcessingException
AuthenticationManager
logout
in interface AuthenticationManager
ProcessingException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void dispose()
dispose
in interface Disposable
public RequestState getState()
getState
in interface AuthenticationManager
public static RequestState getRequestState(Context context)
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
protected void setState(RequestState status)
public SessionContext createApplicationContext(String name, String loadURI, String saveURI) throws ProcessingException
createApplicationContext
in interface AuthenticationManager
ProcessingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |