public class CompositeAuthenticationHandler extends Object implements AuthenticationHandler
Modifier and Type | Field and Description |
---|---|
protected AuthenticationHandler[] |
handlers |
Constructor and Description |
---|
CompositeAuthenticationHandler(AuthenticationHandler[] handlers) |
CompositeAuthenticationHandler(String classRefs) |
Modifier and Type | Method and Description |
---|---|
LoginContext |
handleAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle the authentication if the request contains any known authentication data.
|
void |
init(Map<String,String> properties)
Initialize this handler given a property map.
|
protected AuthenticationHandler[] handlers
public CompositeAuthenticationHandler(String classRefs) throws ReflectiveOperationException, BundleNotFoundException
public CompositeAuthenticationHandler(AuthenticationHandler[] handlers)
public void init(Map<String,String> properties)
AuthenticationHandler
init
in interface AuthenticationHandler
public LoginContext handleAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws LoginException
AuthenticationHandler
LoginException
and the implementation must finish the request by correctly responding to the client or redirecting to
another page - through the given response object.handleAuthentication
in interface AuthenticationHandler
request
- the http requestresponse
- the http responseLoginException
- if authentication failed.Copyright © 2018 Nuxeo. All rights reserved.