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

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

public class SunONE
extends SpringLDAPConnector

Sun ON Directory connector.

Version:
1.0
Author:
Justen Stepka

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
SunONE()
           
 
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)
           
 void updatePrincipalCredential(String name, PasswordCredential credential)
          Updates the password credential for a principal.
 
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, 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

SunONE

public SunONE()
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.


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.