public class SimpleAuthenticationPlugin extends CRaSHPlugin<AuthenticationPlugin> implements AuthenticationPlugin<java.lang.String>
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor<java.lang.String> |
SIMPLE_PASSWORD
The password.
|
static PropertyDescriptor<java.lang.String> |
SIMPLE_USERNAME
The username.
|
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING, logAUTH, NULL| Constructor and Description |
|---|
SimpleAuthenticationPlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password)
Returns true if the user is authentified by its username and credential.
|
protected java.lang.Iterable<PropertyDescriptor<?>> |
createConfigurationCapabilities()
Returns a list of
PropertyDescriptor this plugin requires for its configuration. |
java.lang.Class<java.lang.String> |
getCredentialType()
Returns the credential type.
|
AuthenticationPlugin |
getImplementation()
Returns the implementation.
|
java.lang.String |
getName()
Returns the authentication plugin name.
|
void |
init()
Implement this method to know about init life cycle callback.
|
destroy, getConfigurationCapabilities, getContext, getStatus, getType, toStringpublic static final PropertyDescriptor<java.lang.String> SIMPLE_USERNAME
public static final PropertyDescriptor<java.lang.String> SIMPLE_PASSWORD
protected java.lang.Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
CRaSHPluginPropertyDescriptor this plugin requires for its configuration.createConfigurationCapabilities in class CRaSHPlugin<AuthenticationPlugin>public java.lang.Class<java.lang.String> getCredentialType()
AuthenticationPlugingetCredentialType in interface AuthenticationPlugin<java.lang.String>public AuthenticationPlugin getImplementation()
CRaSHPlugingetImplementation in class CRaSHPlugin<AuthenticationPlugin>public void init()
CRaSHPlugininit in class CRaSHPlugin<AuthenticationPlugin>public java.lang.String getName()
AuthenticationPlugingetName in interface AuthenticationPlugin<java.lang.String>public boolean authenticate(java.lang.String username,
java.lang.String password)
throws java.lang.Exception
AuthenticationPluginauthenticate in interface AuthenticationPlugin<java.lang.String>username - the usernamepassword - the credentialjava.lang.Exception - any exception that would prevent authentication to happenCopyright © 2014 eXo Platform SAS. All Rights Reserved.