public class CrowdAuthenticationPlugin extends CRaSHPlugin<AuthenticationPlugin> implements AuthenticationPlugin<String>
crash.auth=crowdin your crash.properties configuration file,
crowd.propertiesconfiguration file and add it in your application classpath or by defining its path with the system property crowd.properties (
-Dcrowd.properties={FILE-PATH}/crowd.properties).| Modifier and Type | Field and Description |
|---|---|
private static com.atlassian.crowd.service.client.CrowdClient |
crowdClient
Crowd client instance
|
private static Object |
lock
Lock to create the crowd client
|
protected Logger |
log
Logger
|
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZINGAUTH, NULL| Constructor and Description |
|---|
CrowdAuthenticationPlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
String password)
Returns true if the user is authentified by its username and credential.
|
Class<String> |
getCredentialType()
Returns the credential type.
|
private static com.atlassian.crowd.service.client.CrowdClient |
getCrowdClient()
Get a ready to use CrowdClient.
|
AuthenticationPlugin |
getImplementation()
Returns the implementation.
|
String |
getName()
Returns the authentication plugin name.
|
createConfigurationCapabilities, destroy, getConfigurationCapabilities, getContext, getStatus, getType, init, toStringprivate static volatile com.atlassian.crowd.service.client.CrowdClient crowdClient
public CrowdAuthenticationPlugin()
private static com.atlassian.crowd.service.client.CrowdClient getCrowdClient()
public Class<String> getCredentialType()
AuthenticationPlugingetCredentialType in interface AuthenticationPlugin<String>public String getName()
AuthenticationPlugingetName in interface AuthenticationPlugin<String>public boolean authenticate(String username, String password) throws Exception
AuthenticationPluginauthenticate in interface AuthenticationPlugin<String>username - the usernamepassword - the credentialException - any exception that would prevent authentication to happenpublic AuthenticationPlugin getImplementation()
CRaSHPlugingetImplementation in class CRaSHPlugin<AuthenticationPlugin>Copyright © 2013 eXo Platform SAS. All Rights Reserved.