com.atlassian.crowd.directory
Class GenericLDAP
java.lang.Object
com.atlassian.crowd.directory.SpringLDAPConnector
com.atlassian.crowd.directory.RFC4519Directory
com.atlassian.crowd.directory.OpenLDAP
com.atlassian.crowd.directory.GenericLDAP
- All Implemented Interfaces:
- LDAPDirectory, RemoteDirectory, Attributes
- Direct Known Subclasses:
- OpenDS
public class GenericLDAP
- extends OpenLDAP
Generic LDAP connector.
- Version:
- 1.0
- Author:
- Justen Stepka
| Methods inherited from class com.atlassian.crowd.directory.RFC4519Directory |
addDnToGroup, addGroupToGroup, addUserToGroup, findDirectMembersOfGroup, findGroupMembershipNames, findGroupMemberships, findGroupMembershipsOfUserViaMemberOf, findUserMembersOfGroupViaMemberDN, findUserMembersOfGroupViaMemberOf, getCustomGroupAttributeMappers, getCustomUserAttributeMappers, getLdapName, getMemberDnMappers, getMemberships, isDnDirectGroupMember, isGroupDirectGroupMember, isUserDirectGroupMember, removeDnFromGroup, removeGroupFromGroup, removeUserFromGroup, searchGroupRelationshipsWithGroupTypeSpecified, toGenericIterable |
| Methods inherited from class com.atlassian.crowd.directory.SpringLDAPConnector |
addDefaultSnToUserAttributes, addDefaultValueToUserAttributesForAttribute, addGroup, addUser, asLdapGroupName, asLdapName, asLdapUserName, authenticate, createModificationItem, findEntityByDN, findEntityByDN, findGroupByName, findGroupByNameAndType, findGroupWithAttributesByName, findUserByExternalId, findUserByName, findUserWithAttributesByName, getAttributeAsBoolean, getAttributeAsLong, getAuthoritativeDirectory, getBaseEnvironmentProperties, getContextSource, getDirectoryId, getGroupContextMapper, getInitialGroupMemberDN, getKeys, getLdapPropertiesMapper, getNewGroupAttributes, getNewGroupDirectorySpecificAttributes, getNewUserAttributes, getSearchDN, getStandardisedDN, getSubTreeSearchControls, getUserContextMapper, getUserModificationItems, getValue, getValues, isEmpty, isRolesDisabled, pageSearchResults, postprocessGroups, removeGroup, removeGroupAttributes, removeUser, removeUserAttributes, renameGroup, renameUser, searchEntities, searchEntitiesWithRequestControls, searchGroupObjects, searchGroupObjectsOfSpecifiedGroupType, searchGroupRelationships, searchGroups, searchUserObjects, searchUsers, setAttributes, setDirectoryId, storeGroupAttributes, storeUserAttributes, supportsInactiveAccounts, supportsNestedGroups, testConnection, typedEntityNotFoundException, updateGroup, updateUser, updateUserCredential |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericLDAP
public GenericLDAP(LDAPQueryTranslater ldapQueryTranslater,
com.atlassian.event.api.EventPublisher eventPublisher,
InstanceFactory instanceFactory,
PasswordEncoderFactory passwordEncoderFactory)
getStaticDirectoryType
public static String getStaticDirectoryType()
getDescriptiveName
public String getDescriptiveName()
- Specified by:
getDescriptiveName in interface RemoteDirectory- Overrides:
getDescriptiveName in class OpenLDAP
encodePassword
protected String encodePassword(PasswordCredential passwordCredential)
- Translates a clear-text password into an encrypted one if it isn't already encrypted, using the encryption method
specified by the directory settings.
- Specified by:
encodePassword in class SpringLDAPConnector
- Parameters:
passwordCredential - The password credential to be encoded, guaranteed to be non-null. If the subclass
supports encrypting the given passwordCredential, it should NOT do so if
PasswordCredential.isEncryptedCredential()
returns true (although it may still encode the credential to the format
required by the directory). The value of
PasswordCredential.getCredential() is also
guaranteed to be non-null.
- Returns:
- An encoded password, suitable for passing to the directory.
- Throws:
PasswordEncoderNotFoundException - (runtime exception) if the encoder for the
specified encryption method cannot be found
Copyright © 2014 Atlassian. All Rights Reserved.