public class JaasAuthenticationPlugin extends CRaSHPlugin<AuthenticationPlugin> implements AuthenticationPlugin<String>
| Modifier and Type | Field and Description |
|---|---|
(package private) static PropertyDescriptor<String> |
JAAS_DOMAIN
.
|
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING, logAUTH, NULL| Constructor and Description |
|---|
JaasAuthenticationPlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
String password)
Returns true if the user is authentified by its username and credential.
|
protected Iterable<PropertyDescriptor<?>> |
createConfigurationCapabilities()
Returns a list of
PropertyDescriptor this plugin requires for its configuration. |
Class<String> |
getCredentialType()
Returns the credential type.
|
AuthenticationPlugin |
getImplementation()
Returns the implementation.
|
String |
getName()
Returns the authentication plugin name.
|
destroy, getConfigurationCapabilities, getContext, getStatus, getType, init, toStringstatic final PropertyDescriptor<String> JAAS_DOMAIN
public JaasAuthenticationPlugin()
public String getName()
AuthenticationPlugingetName in interface AuthenticationPlugin<String>protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
CRaSHPluginPropertyDescriptor this plugin requires for its configuration.createConfigurationCapabilities in class CRaSHPlugin<AuthenticationPlugin>public Class<String> getCredentialType()
AuthenticationPlugingetCredentialType 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 © 2015 eXo Platform SAS. All Rights Reserved.