public abstract class OwCMISAbstractAuthenticator extends Object implements OwCMISAuthenticationInterceptor
Abstract instance of OwCMISAuthenticationInterceptor, with helper methods.
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
Constructor and Description |
---|
OwCMISAbstractAuthenticator(com.wewebu.ow.server.conf.OwBaseInitializer initializer) |
OwCMISAbstractAuthenticator(OwCMISNetwork network) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
buildOpenCmisParameters(String user_p,
String pwd_p,
Locale currentLocale_p)
Create the OpenCmis parameters which are used for authentication verification.
|
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.
|
protected com.wewebu.ow.server.util.ldap.OwLdapConnector |
createLDAPConnector(com.wewebu.ow.server.util.OwAuthenticationConfiguration authenticationConf_p)
Factory for LDAP connector instances.
|
protected com.wewebu.ow.server.conf.OwBaseInitializer |
getBaseInitialzier()
Depending on initialization
will return the OwBaseInitializer or null
|
protected OwCMISNetwork |
getNetwork()
Depending on initialization
returning the current network or null
|
protected OwCMISNetworkCfg |
getNetworkConfiguration()
Get configuration helper instance.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRestletAuthenticationHandler
public OwCMISAbstractAuthenticator(com.wewebu.ow.server.conf.OwBaseInitializer initializer)
public OwCMISAbstractAuthenticator(OwCMISNetwork network)
protected OwCMISNetworkCfg getNetworkConfiguration() throws com.wewebu.ow.server.exceptions.OwConfigurationException
com.wewebu.ow.server.exceptions.OwConfigurationException
public Map<String,String> buildOpenCmisParameters(String user_p, String pwd_p, Locale currentLocale_p) throws com.wewebu.ow.server.exceptions.OwConfigurationException
user_p
- Stringpwd_p
- StringcurrentLocale_p
- Locale (can be null)com.wewebu.ow.server.exceptions.OwConfigurationException
protected OwCMISNetwork getNetwork()
protected com.wewebu.ow.server.conf.OwBaseInitializer getBaseInitialzier()
protected com.wewebu.ow.server.util.ldap.OwLdapConnector createLDAPConnector(com.wewebu.ow.server.util.OwAuthenticationConfiguration authenticationConf_p) throws com.wewebu.ow.server.exceptions.OwException
authenticationConf_p
- OwAuthenticationConfigurationcom.wewebu.ow.server.exceptions.OwException
public void init(com.wewebu.ow.server.util.OwXMLUtil configNode) throws com.wewebu.ow.server.exceptions.OwException
OwCMISAuthenticationInterceptor
init
in interface OwCMISAuthenticationInterceptor
configNode
- OwXMLUtil node which represents AuthProviderFactory configurationcom.wewebu.ow.server.exceptions.OwException
public org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider createAuthenticationProvider(Map<String,String> information) throws com.wewebu.ow.server.exceptions.OwException
OwCMISAuthenticationInterceptor
createAuthenticationProvider
in interface OwCMISAuthenticationInterceptor
information
- Map current available informations for OpenCMIS Session creationcom.wewebu.ow.server.exceptions.OwException
public boolean onRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws com.wewebu.ow.server.exceptions.OwException, IOException
OwCMISAuthenticationInterceptor
If true is returned, by default a login is processed through network.
The login will call the OwCMISAuthenticationInterceptor.createAuthenticationProvider(Map)
and
verify against back-end if login was successful.
onRequest
in interface OwCMISAuthenticationInterceptor
req
- HttpServletRequestresp
- HttpServletResponsecom.wewebu.ow.server.exceptions.OwException
IOException
public boolean processRendering(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
OwCMISAuthenticationInterceptor
processRendering
in interface OwCMISAuthenticationInterceptor
req
- HttpServletRequestresp
- HttpServletResponseCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.