com.wewebu.ow.server.ecmimpl.opencmis.auth
Interface OwCMISAuthenticationInterceptor

All Known Implementing Classes:
OwCMISAlfrescoOAuthInterceptor

public interface OwCMISAuthenticationInterceptor

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


Method Summary
 org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider createAuthenticationProvider(Map<String,?> information)
          Called to create a new Authentication provider which should be used in communication between CMIS client and server.
 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.
 

Method Detail

init

void init(com.wewebu.ow.server.util.OwXMLUtil configNode)
          throws com.wewebu.ow.server.exceptions.OwException
Initialization of AuthProviderFactory instance with corresponding configuration.

Parameters:
configNode - OwXMLUtil node which represents AuthProviderFactory configuration
Throws:
com.wewebu.ow.server.exceptions.OwException

createAuthenticationProvider

org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider createAuthenticationProvider(Map<String,?> information)
                                                                                              throws com.wewebu.ow.server.exceptions.OwException
Called to create a new Authentication provider which should be used in communication between CMIS client and server.

Parameters:
information - Map current available informations for OpenCMIS Session creation
Returns:
AuthenticationProvider which should be used for session creation
Throws:
com.wewebu.ow.server.exceptions.OwException

onRequest

boolean onRequest(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse resp)
                  throws com.wewebu.ow.server.exceptions.OwException,
                         IOException
Called before login page is rendered, can be used for redirect or preparation of this instance. The return value defines if the process sequence should be processed as defined, or if it should stop because the response was created by this instance.

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.

Parameters:
req - HttpServletRequest
resp - HttpServletResponse
Returns:
boolean true process sequence as defined, false stop processing
Throws:
com.wewebu.ow.server.exceptions.OwException
IOException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.