org.nuxeo.ecm.webengine.jaxrs.login
Class Base64AuthenticationHandler
java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.login.Base64AuthenticationHandler
- All Implemented Interfaces:
- AuthenticationHandler
public class Base64AuthenticationHandler
- extends Object
- implements AuthenticationHandler
- Author:
- Bogdan Stefanescu
Base64AuthenticationHandler
public Base64AuthenticationHandler()
init
public void init(Map<String,String> properties)
- Description copied from interface:
AuthenticationHandler
- Initialize this handler given a property map.
- Specified by:
init
in interface AuthenticationHandler
handleAuthentication
public LoginContext handleAuthentication(HttpServletRequest request,
HttpServletResponse response)
throws LoginException
- Description copied from interface:
AuthenticationHandler
- Handle the authentication if the request contains any known authentication data.
If authentication was done returns the resulting LoginContext otherwise returns null.
If authentication failed throws
LoginException
and the implementation must
finish the request by correctly responding to the client or redirecting
to another page - through the given response object.
- Specified by:
handleAuthentication
in interface AuthenticationHandler
- Parameters:
request
- the http requestresponse
- the http response
- Returns:
- the loginc context if successful, or null if login was not handled.
- Throws:
LoginException
- if authentication failed.
Copyright © 2011 Nuxeo SAS. All Rights Reserved.