org.jboss.portal.identity.ldap
Class LDAPUserModule
java.lang.Object
org.jboss.portal.identity.service.IdentityModuleService
org.jboss.portal.identity.service.UserModuleService
org.jboss.portal.identity.ldap.LDAPUserModule
- All Implemented Interfaces:
- UserModule
- Direct Known Subclasses:
- LDAPUserModuleImpl
public abstract class LDAPUserModule
- extends UserModuleService
Abstract LDAPUserModule that should be extended to provide compabitibility across identity modules
- Version:
- $Revision: 1.1 $
- Author:
- Boleslaw Dawidowicz
Methods inherited from class org.jboss.portal.identity.service.IdentityModuleService |
getConnectionJNDIName, getIdentityConfiguration, getIdentityContext, getIdentityEventBroadcaster, getInitOptions, getJndiBinder, getJNDIName, getModuleType, setConnectionJNDIName, setIdentityContext, setInitOptions, setJndiBinder, setJNDIName, setModuleType, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDAPUserModule
public LDAPUserModule()
start
public void start()
throws java.lang.Exception
- Overrides:
start
in class IdentityModuleService
- Throws:
java.lang.Exception
updatePassword
public void updatePassword(LDAPUserImpl ldapu,
java.lang.String password)
throws IdentityException
- Throws:
IdentityException
validatePassword
public boolean validatePassword(LDAPUserImpl ldapu,
java.lang.String password)
throws IdentityException
- Throws:
IdentityException
createUserInstance
public LDAPUserImpl createUserInstance(javax.naming.directory.Attributes attrs,
java.lang.String dn)
throws IdentityException
- Throws:
IdentityException
findUserByDN
public User findUserByDN(java.lang.String dn)
throws IdentityException,
java.lang.IllegalArgumentException,
NoSuchUserException
- method not belonging to UserModule interface - ldap specific.
- Throws:
IdentityException
java.lang.IllegalArgumentException
NoSuchUserException
searchUsers
public abstract java.util.List searchUsers(java.lang.String filter,
java.lang.Object[] filterArgs)
throws javax.naming.NamingException,
IdentityException
- This method should be used by over modules to perform searches. It will allow user module
implementation to apply proper filter and search scope from the configuration
- Parameters:
filter
- that will be concatenated with proper user search filter from the modulefilterArgs
-
- Returns:
-
- Throws:
javax.naming.NamingException
IdentityException
getUserProfileModule
protected UserProfileModule getUserProfileModule()
throws IdentityException
- Throws:
IdentityException
getUidAttributeID
protected java.lang.String getUidAttributeID()
throws IdentityException
- Throws:
IdentityException
getConnectionContext
protected LDAPConnectionContext getConnectionContext()
throws IdentityException
- Throws:
IdentityException
getContainerDN
protected java.lang.String getContainerDN()
throws IdentityException
- Throws:
IdentityException
getPrincipalPreffix
protected java.lang.String getPrincipalPreffix()
throws IdentityException
- Throws:
IdentityException
getPrincipalSuffix
protected java.lang.String getPrincipalSuffix()
throws IdentityException
- Throws:
IdentityException
getPasswordAttributeId
protected java.lang.String getPasswordAttributeId()
throws IdentityException
- Throws:
IdentityException
getUserSearchFilter
protected java.lang.String getUserSearchFilter()
throws IdentityException
- Throws:
IdentityException
getUserSearchCtxDN
protected java.lang.String getUserSearchCtxDN()
throws IdentityException
- Throws:
IdentityException
getSearchTimeLimit
protected int getSearchTimeLimit()
throws IdentityException
- Throws:
IdentityException
getSearchScope
protected int getSearchScope()
throws IdentityException
- Throws:
IdentityException
isAllowEmptyPasswords
protected boolean isAllowEmptyPasswords()
isUserNameToLowerCase
protected boolean isUserNameToLowerCase()
getAttributesToAdd
protected java.util.Map getAttributesToAdd()
throws IdentityException
- Throws:
IdentityException
setConnectionContext
public void setConnectionContext(LDAPConnectionContext connectionContext)