public interface OwCMISAuthenticationInterceptor
extends com.wewebu.ow.server.auth.OwAuthenticator
Interface for authentication interception which is used for creation of OpenCMIS AuthenticationProvider. The created AuthenticationProvider instance will be used in communication with CMIS back-end.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Method and Description |
---|---|
org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider |
createAuthenticationProvider(Map<String,String> information)
Called to create a new Authentication provider which should be used in
communication between CMIS client and server.
|
org.alfresco.wd.ext.restlet.auth.OwRestletAuthenticationHandler |
createRestletAuthenticationHandler(OwCMISCredentials cred)
Factory to create an OwCMISRestletAuthenticationHandler which can be used for non-CMIS calls.
|
void |
init(com.wewebu.ow.server.util.OwXMLUtil configNode)
Initialization of AuthProviderFactory instance
with corresponding configuration.
|
boolean |
onRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Called before login page is rendered, can be used for redirect or preparation
of this instance.
|
boolean |
processRendering(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Called after onRequest returns false, this method will control if
rendering should be processed afterwards or not.
|
void init(com.wewebu.ow.server.util.OwXMLUtil configNode) throws com.wewebu.ow.server.exceptions.OwException
configNode
- OwXMLUtil node which represents AuthProviderFactory configurationcom.wewebu.ow.server.exceptions.OwException
org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider createAuthenticationProvider(Map<String,String> information) throws com.wewebu.ow.server.exceptions.OwException
information
- Map current available informations for OpenCMIS Session creationcom.wewebu.ow.server.exceptions.OwException
boolean onRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws com.wewebu.ow.server.exceptions.OwException, IOException
If true is returned, by default a login is processed through network.
The login will call the createAuthenticationProvider(Map)
and
verify against back-end if login was successful.
req
- HttpServletRequestresp
- HttpServletResponsecom.wewebu.ow.server.exceptions.OwException
IOException
boolean processRendering(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
req
- HttpServletRequestresp
- HttpServletResponseorg.alfresco.wd.ext.restlet.auth.OwRestletAuthenticationHandler createRestletAuthenticationHandler(OwCMISCredentials cred) throws com.wewebu.ow.server.exceptions.OwException
cred
- OwCMISCredentialscom.wewebu.ow.server.exceptions.OwException
- if not possible to create instanceCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.