com.wewebu.ow.server.ecmimpl.opencmis.auth
Class OwCMISLDAPCredentialsAuthenticator

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.opencmis.auth.OwCMISCredentialsAuthenticator
      extended by com.wewebu.ow.server.ecmimpl.opencmis.auth.OwCMISLDAPCredentialsAuthenticator
All Implemented Interfaces:
com.wewebu.ow.server.auth.OwAuthenticator

public class OwCMISLDAPCredentialsAuthenticator
extends OwCMISCredentialsAuthenticator

LDAP based implementation of the CredentialsAuthenticator.

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

Since:
4.1.1.0

Field Summary
 
Fields inherited from class com.wewebu.ow.server.ecmimpl.opencmis.auth.OwCMISCredentialsAuthenticator
CONF_NODE_SECURITY_HANDLER
 
Constructor Summary
OwCMISLDAPCredentialsAuthenticator(com.wewebu.ow.server.conf.OwBaseInitializer initializer)
           
OwCMISLDAPCredentialsAuthenticator(OwCMISNetwork network, com.wewebu.ow.server.util.ldap.OwLdapConnector ldapConnector)
           
 
Method Summary
 com.wewebu.ow.server.auth.OwAuthentication authenticate(com.wewebu.ow.server.auth.OwAuthentication authentication_p)
           
protected  OwCMISCredentials createCredentials(String user_p, String password_p, org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider nativeAuthProvider)
          Factory method for credentials objects.
protected  com.wewebu.ow.server.util.ldap.OwLdapConnector getLdapConnector()
          Will try to retrieve connector to an LDAP system.
 
Methods inherited from class com.wewebu.ow.server.ecmimpl.opencmis.auth.OwCMISCredentialsAuthenticator
buildOpenCmisParameters, createLDAPConnector, getBaseInitialzier, getNetwork, getNetworkConfiguration, retrieveAuthenticationProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISLDAPCredentialsAuthenticator

public OwCMISLDAPCredentialsAuthenticator(OwCMISNetwork network,
                                          com.wewebu.ow.server.util.ldap.OwLdapConnector ldapConnector)
Parameters:
network -
ldapConnector -

OwCMISLDAPCredentialsAuthenticator

public OwCMISLDAPCredentialsAuthenticator(com.wewebu.ow.server.conf.OwBaseInitializer initializer)
Method Detail

getLdapConnector

protected com.wewebu.ow.server.util.ldap.OwLdapConnector getLdapConnector()
                                                                   throws com.wewebu.ow.server.exceptions.OwException
Will try to retrieve connector to an LDAP system.

By default it will use the provided one, which was defined during instantiation. If none was defined, the configuration is checked/searched for LDAP configuration.

Returns:
OwLdapConfiguration or null
Throws:
com.wewebu.ow.server.exceptions.OwConfigurationException
com.wewebu.ow.server.exceptions.OwException

createCredentials

protected OwCMISCredentials createCredentials(String user_p,
                                              String password_p,
                                              org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider nativeAuthProvider)
                                       throws com.wewebu.ow.server.exceptions.OwException
Description copied from class: OwCMISCredentialsAuthenticator
Factory method for credentials objects.

Overrides:
createCredentials in class OwCMISCredentialsAuthenticator
Parameters:
user_p - String user login name
password_p - String login password
nativeAuthProvider - AuthenticationProvider which should be used for authentication (can be null)
Returns:
OwCMISCredentials
Throws:
com.wewebu.ow.server.exceptions.OwException

authenticate

public com.wewebu.ow.server.auth.OwAuthentication authenticate(com.wewebu.ow.server.auth.OwAuthentication authentication_p)
                                                        throws com.wewebu.ow.server.exceptions.OwAuthenticationException,
                                                               com.wewebu.ow.server.exceptions.OwConfigurationException,
                                                               com.wewebu.ow.server.exceptions.OwServerException
Specified by:
authenticate in interface com.wewebu.ow.server.auth.OwAuthenticator
Overrides:
authenticate in class OwCMISCredentialsAuthenticator
Throws:
com.wewebu.ow.server.exceptions.OwAuthenticationException
com.wewebu.ow.server.exceptions.OwConfigurationException
com.wewebu.ow.server.exceptions.OwServerException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.