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, log
AUTH, 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, toString
static final PropertyDescriptor<String> JAAS_DOMAIN
public JaasAuthenticationPlugin()
public String getName()
AuthenticationPlugin
getName
in interface AuthenticationPlugin<String>
protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
CRaSHPlugin
PropertyDescriptor
this plugin requires for its configuration.createConfigurationCapabilities
in class CRaSHPlugin<AuthenticationPlugin>
public Class<String> getCredentialType()
AuthenticationPlugin
getCredentialType
in interface AuthenticationPlugin<String>
public boolean authenticate(String username, String password) throws Exception
AuthenticationPlugin
authenticate
in interface AuthenticationPlugin<String>
username
- the usernamepassword
- the credentialException
- any exception that would prevent authentication to happenpublic AuthenticationPlugin getImplementation()
CRaSHPlugin
getImplementation
in class CRaSHPlugin<AuthenticationPlugin>
Copyright © 2015 eXo Platform SAS. All Rights Reserved.