|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.crowd.integration.directory.internal.InternalDirectory
com.atlassian.crowd.integration.directory.delegated.DelegatedAuthenticationDirectory
public class DelegatedAuthenticationDirectory
This implementation of a RemoteDirectory
provides delegated authentication to an underlying remote
LDAP implementation.
Field Summary | |
---|---|
static String |
DELEGATED_DIRECTORY_TYPE
|
Fields inherited from class com.atlassian.crowd.integration.directory.internal.InternalDirectory |
---|
ATTRIBUTE_PASSWORD_HISTORY_COUNT, ATTRIBUTE_PASSWORD_MAX_ATTEMPTS, ATTRIBUTE_PASSWORD_MAX_CHANGE_TIME, ATTRIBUTE_PASSWORD_REGEX, ATTRIBUTE_USER_ENCRYPTION_METHOD, attributes, DESCRIPTIVE_NAME, groupDAO, i18nHelper, logger, membershipDAO, passwordEncoderFactory, passwordHelper, userDAO |
Constructor Summary | |
---|---|
DelegatedAuthenticationDirectory()
|
Method Summary | |
---|---|
User |
authenticate(String name,
PasswordCredential credential)
Authenticates a user with the directory store. |
protected void |
encryptCredentials(List credentials)
|
protected RemoteDirectory |
getDelegatedDirectory()
|
String |
getDescriptiveName()
Returns a descriptive name for the type of directory. |
protected PasswordEncoder |
getEncoder()
|
void |
setDirectoryDAO(DirectoryDAO directoryDAO)
|
void |
setDirectoryInstanceLoader(DirectoryInstanceLoader directoryInstanceLoader)
|
void |
setEventManager(com.atlassian.event.EventManager eventManager)
|
void |
testConnection()
Does nothing, connection is determined by the ability to communicate with the database. |
List<String> |
testUserSearch()
Tests a blank principal search against the underlying LDAP directory. |
void |
updateUserCredential(String userName,
PasswordCredential credential)
Updates the password for a user . |
protected void |
validateRegex(PasswordCredential credential)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DELEGATED_DIRECTORY_TYPE
Constructor Detail |
---|
public DelegatedAuthenticationDirectory()
Method Detail |
---|
public User authenticate(String name, PasswordCredential credential) throws ObjectNotFoundException, InactiveAccountException, InvalidAuthenticationException
RemoteDirectory
user
with the directory store.
authenticate
in interface RemoteDirectory
authenticate
in class InternalDirectory
name
- The name of the user (username).credential
- The supplied credentials (password).
InvalidAuthenticationException
- if the user was unable to be created in the InternalDirectory after successful authentication
with LDAP (eg. the LDAP User is not a valid Internal User), this exception may be thrown.
ObjectNotFoundException
- The user wth the supplied name does not exist.
InactiveAccountException
- The supplied user is inactive.protected PasswordEncoder getEncoder()
getEncoder
in class InternalDirectory
public void updateUserCredential(String userName, PasswordCredential credential) throws ObjectNotFoundException, InvalidCredentialException
RemoteDirectory
password
for a user
.
updateUserCredential
in interface RemoteDirectory
updateUserCredential
in class InternalDirectory
userName
- The name of the user (username).credential
- The new credential (password).
ObjectNotFoundException
- The user does not exist.
InvalidCredentialException
- The supplied credential is invalid.public void testConnection() throws DirectoryAccessException
InternalDirectory
testConnection
in interface RemoteDirectory
testConnection
in class InternalDirectory
DirectoryAccessException
- An unknown wire exception occurred.protected void encryptCredentials(List credentials)
protected void validateRegex(PasswordCredential credential) throws InvalidCredentialException
InvalidCredentialException
protected RemoteDirectory getDelegatedDirectory() throws DirectoryInstantiationException
DirectoryInstantiationException
public List<String> testUserSearch() throws DirectoryInstantiationException
DirectoryInstantiationException
- directory could not be loaded.public String getDescriptiveName()
RemoteDirectory
getDescriptiveName
in interface RemoteDirectory
getDescriptiveName
in class InternalDirectory
public void setDirectoryInstanceLoader(DirectoryInstanceLoader directoryInstanceLoader)
public void setEventManager(com.atlassian.event.EventManager eventManager)
public void setDirectoryDAO(DirectoryDAO directoryDAO)
setDirectoryDAO
in class InternalDirectory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |