com.atlassian.crowd.integration.directory.connector
Class OpenLDAP

java.lang.Object
  extended by com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector
      extended by com.atlassian.crowd.integration.directory.connector.OpenLDAP
All Implemented Interfaces:
RemoteDirectory
Direct Known Subclasses:
GenericLDAP

public class OpenLDAP
extends SpringLDAPConnector


Field Summary
static String NAME
          The name of the server: Sun ONE Directory Server.
 
Fields inherited from class com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector
attributes, DEFAULT_PAGE_SIZE, ldapPropertiesMapper, ldapTemplate, PRINCIPAL_NO_VALID_PASSWORD
 
Fields inherited from interface com.atlassian.crowd.integration.directory.RemoteDirectory
DIRECTORY_TYPE
 
Constructor Summary
OpenLDAP()
           
 
Method Summary
 RemotePrincipal addPrincipal(RemotePrincipal principal)
          Adds a principal to the directory store.
 String getDirectoryType()
          Returns the DIRECTORY_TYPE name of the implementation.
protected  byte[] getPassword(List pubilcCredentials)
          Converts password into a format the directory server password format.
 
Methods inherited from class com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector
addContainerObject, addGroup, addPrincipalGeneric, addPrincipalToGroup, addPrincipalToRole, addRole, authenticate, buildDN, findGroupByName, findGroupMemberships, findPrincipalByName, findRoleByName, findRoleMemberships, getAttributes, getGroupDN, getID, getLdapPropertiesMapper, getPrincipalDN, getRoleDN, isGroupMember, isMemeber, isRoleMember, removeGroup, removePrincipal, removePrincipalFromGroup, removePrincipalFromRole, removeRole, searchGroups, searchPrincipals, searchRoles, setAttributes, setID, setLdapPropertiesMapper, testConnection, updateGroup, updatePrincipal, updatePrincipalCredential, updateRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
The name of the server: Sun ONE Directory Server.

See Also:
Constant Field Values
Constructor Detail

OpenLDAP

public OpenLDAP()
Method Detail

getDirectoryType

public String getDirectoryType()
Description copied from interface: RemoteDirectory
Returns the DIRECTORY_TYPE name of the implementation.

Specified by:
getDirectoryType in interface RemoteDirectory
Overrides:
getDirectoryType in class SpringLDAPConnector
Returns:
The name of the implementation.

getPassword

protected byte[] getPassword(List pubilcCredentials)
                      throws InvalidCredentialException
Converts password into a format the directory server password format.

Parameters:
pubilcCredentials - Credentials to convert.
Returns:
The directory server password format.
Throws:
InvalidCredentialException - Unable to process the credentials.

addPrincipal

public RemotePrincipal addPrincipal(RemotePrincipal principal)
                             throws InvalidPrincipalException,
                                    RemoteException,
                                    InvalidCredentialException
Description copied from interface: RemoteDirectory
Adds a principal to the directory store.

Parameters:
principal - The principal to add.
Returns:
The principal with any updated attributes.
Throws:
InvalidPrincipalException - The supplied principal is invalid.
RemoteException - An unknown remote exception occured.
InvalidCredentialException - The supplied credential(s) are invalid.


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.