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

java.lang.Object
  extended by com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector
      extended by com.atlassian.crowd.integration.directory.connector.MicrosoftActiveDirectory
All Implemented Interfaces:
RemoteDirectory

public class MicrosoftActiveDirectory
extends SpringLDAPConnector

Microsoft Active Directory connector.

Version:
1.0
Author:
Justen Stepka

Field Summary
static String NAME
          The name of the server: Microsoft Active Directory.
 
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
MicrosoftActiveDirectory()
           
 
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)
           
 RemoteGroup updateGroup(RemoteGroup group)
          Updates the group by the name attribute.
 void updatePrincipalCredential(String name, PasswordCredential credential)
          Updates the password credential for a principal.
 RemoteRole updateRole(RemoteRole role)
          Updates the role by the name attribute.
 
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, updatePrincipal
 
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: Microsoft Active Directory.

See Also:
Constant Field Values
Constructor Detail

MicrosoftActiveDirectory

public MicrosoftActiveDirectory()
Method Detail

getPassword

protected byte[] getPassword(List pubilcCredentials)
                      throws InvalidCredentialException
Throws:
InvalidCredentialException

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.

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.

updatePrincipalCredential

public void updatePrincipalCredential(String name,
                                      PasswordCredential credential)
                               throws RemoteException,
                                      ObjectNotFoundException,
                                      InvalidCredentialException
Description copied from interface: RemoteDirectory
Updates the password credential for a principal.

Specified by:
updatePrincipalCredential in interface RemoteDirectory
Overrides:
updatePrincipalCredential in class SpringLDAPConnector
Parameters:
name - The name of the principal.
credential - The new credential.
Throws:
RemoteException - An unknown remote exception occured.
ObjectNotFoundException - The principal does not exist.
InvalidCredentialException - The supplied credential is invalid.

updateGroup

public RemoteGroup updateGroup(RemoteGroup group)
                        throws RemoteException,
                               ObjectNotFoundException
Description copied from interface: RemoteDirectory
Updates the group by the name attribute.

Specified by:
updateGroup in interface RemoteDirectory
Overrides:
updateGroup in class SpringLDAPConnector
Parameters:
group - The group to update.
Returns:
The populated group.
Throws:
RemoteException - An unknown remote exception occured.
ObjectNotFoundException - the group does not exist.

updateRole

public RemoteRole updateRole(RemoteRole role)
                      throws RemoteException,
                             ObjectNotFoundException
Description copied from interface: RemoteDirectory
Updates the role by the name attribute.

Specified by:
updateRole in interface RemoteDirectory
Overrides:
updateRole in class SpringLDAPConnector
Parameters:
role - The role to update.
Returns:
The populated role.
Throws:
RemoteException - An unknown remote exception occured.
ObjectNotFoundException - The role does not exist.


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.