|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.plugin.CRaSHPlugin<AuthenticationPlugin>
org.crsh.plugins.crowd.CrowdAuthenticationPlugin
public class CrowdAuthenticationPlugin
Allows to use an Atlassian Crowd serer to authenticate on CRaSH To use it you need to :
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).
| Field Summary | |
|---|---|
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 |
| Fields inherited from class org.crsh.plugin.CRaSHPlugin |
|---|
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING |
| Fields inherited from interface org.crsh.auth.AuthenticationPlugin |
|---|
AUTH, NULL |
| Constructor Summary | |
|---|---|
CrowdAuthenticationPlugin()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.crsh.plugin.CRaSHPlugin |
|---|
createConfigurationCapabilities, destroy, getConfigurationCapabilities, getContext, getStatus, getType, init, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Logger log
private static volatile com.atlassian.crowd.service.client.CrowdClient crowdClient
private static final Object lock
| Constructor Detail |
|---|
public CrowdAuthenticationPlugin()
| Method Detail |
|---|
private static com.atlassian.crowd.service.client.CrowdClient getCrowdClient()
public Class<String> getCredentialType()
AuthenticationPlugin
getCredentialType in interface AuthenticationPlugin<String>public String getName()
AuthenticationPlugin
getName in interface AuthenticationPlugin<String>
public boolean authenticate(String username,
String password)
throws Exception
AuthenticationPlugin
authenticate in interface AuthenticationPlugin<String>username - the usernamepassword - the credential
Exception - any exception that would prevent authentication to happenpublic AuthenticationPlugin getImplementation()
CRaSHPlugin
getImplementation in class CRaSHPlugin<AuthenticationPlugin>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||