com.atlassian.crowd.integration.atlassianuser
Class CrowdAuthenticator
java.lang.Object
com.atlassian.crowd.integration.atlassianuser.CrowdAuthenticator
- All Implemented Interfaces:
- com.atlassian.user.security.authentication.Authenticator
public class CrowdAuthenticator
- extends java.lang.Object
- implements com.atlassian.user.security.authentication.Authenticator
Crowd authenticator that contacts the Crowd security server to validate a username and password.
Constructor Summary |
CrowdAuthenticator(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier)
|
CrowdAuthenticator(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier,
com.atlassian.crowd.service.client.CrowdClient restCrowdClient)
|
Method Summary |
boolean |
authenticate(java.lang.String username,
java.lang.String password)
Authenticates verses the Crowd security server. |
com.atlassian.user.repository.RepositoryIdentifier |
getRepository()
Gets the repository the authenticator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrowdAuthenticator
public CrowdAuthenticator(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier,
com.atlassian.crowd.service.client.CrowdClient restCrowdClient)
CrowdAuthenticator
public CrowdAuthenticator(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier)
authenticate
public boolean authenticate(java.lang.String username,
java.lang.String password)
throws com.atlassian.user.EntityException
- Authenticates verses the Crowd security server.
- Specified by:
authenticate
in interface com.atlassian.user.security.authentication.Authenticator
- Parameters:
username
- usernamepassword
- password
- Returns:
- true if the username and password were successfully authenticated, false otherwise
- Throws:
com.atlassian.user.EntityException
getRepository
public com.atlassian.user.repository.RepositoryIdentifier getRepository()
- Gets the repository the authenticator
- Specified by:
getRepository
in interface com.atlassian.user.security.authentication.Authenticator
Copyright © 2012 Atlassian. All Rights Reserved.