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

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

public class SunONE
extends LDAPDirectory

Sun ON Directory connector.

Version:
1.0
Author:
Justen Stepka

Field Summary
static String NAME
          The name of the server: Sun ONE Directory Server.
protected  boolean pagingResultsControl
          This server does not support paging directory results.
 
Fields inherited from class com.atlassian.crowd.integration.directory.connector.LDAPDirectory
attributes, CONNECTION_FACTORY, CONNECTION_FACTORY_SSL_IMPL, CONNECTION_INITIAL_CONTEXT_FACTORY, CONNECTION_SECURITY_AUTHENTICATION, CONNECTION_SSL_SECURITY_PROTOCOL, DEFAULT_PAGE_SIZE, DISTINGUISHED_NAME, GROUP_DESCRIPTION_KEY, GROUP_DN_ADDITION, GROUP_NAME_KEY, GROUP_OBJECTCLASS_KEY, GROUP_USERNAMES_KEY, LDAP_BASEDN_KEY, LDAP_OBJECTCLASS, LDAP_PASSWORD_KEY, LDAP_SECURE_KEY, LDAP_URL_KEY, LDAP_USERDN_KEY, PRINCIPAL_NO_VALID_PASSWORD, ROLE_DESCRIPTION_KEY, ROLE_DN_ADDITION, ROLE_NAME_KEY, ROLE_OBJECTCLASS_KEY, ROLE_USERNAMES_KEY, UNABLE_TO_CONNECT, USER_DN_ADDITION, USER_EMAIL_KEY, USER_FIRSTNAME_KEY, USER_GROUP_KEY, USER_LASTNAME_KEY, USER_OBJECTCLASS_KEY, USER_PASSWORD_KEY, USER_USERNAME_KEY
 
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.
protected  String buildEntityDN(LdapContext connection, String objectClass, String dnAddition, String nameKey, String name)
          Builds the entity DN for a given object type.
 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.LDAPDirectory
addContainerEntity, addGroup, addMemberToContainerEntity, addPrincipalGeneric, addPrincipalToGroup, addPrincipalToRole, addRole, authenticate, buildBaseDN, buildSearch, buildSearchObject, connect, disconnect, findGroupByName, findPrincipalByName, findRoleByName, getAttribute, getAttributes, getConfigurationDetails, getID, getImplementations, getSingleAttribute, isGroupMember, isMemeber, isRoleMember, isSecureSSL, parseControlResponse, populateAttribute, populateAttributes, populateGroup, populatePrincipal, populateRole, processMembers, removeGroup, removeMemberFromContainerEntity, removePrincipal, removePrincipalFromGroup, removePrincipalFromRole, removeRole, searchGroups, searchPrincipals, searchRoles, setAttribute, setAttribute, setAttributes, setID, 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

pagingResultsControl

protected boolean pagingResultsControl
This server does not support paging directory results.

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.

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.

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.

buildEntityDN

protected String buildEntityDN(LdapContext connection,
                               String objectClass,
                               String dnAddition,
                               String nameKey,
                               String name)
                        throws NamingException,
                               ObjectNotFoundException
Description copied from class: LDAPDirectory
Builds the entity DN for a given object type.

Overrides:
buildEntityDN in class LDAPDirectory
Parameters:
connection - LDAP connection.
objectClass - LDAP object type.
dnAddition - Any DN addition that might be necessary to the base DN.
nameKey - Restriction attribute, ie name.
name - Restriction value, ie johndoe.
Returns:
The entity DN.
Throws:
NamingException - An LDAP name exception occured.
ObjectNotFoundException - Entity does not exist.


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.