org.crsh.auth
Class JaasAuthenticationPlugin
java.lang.Object
org.crsh.plugin.CRaSHPlugin<AuthenticationPlugin>
org.crsh.auth.JaasAuthenticationPlugin
- All Implemented Interfaces:
- AuthenticationPlugin<String>
public class JaasAuthenticationPlugin
- extends CRaSHPlugin<AuthenticationPlugin>
- implements AuthenticationPlugin<String>
JAAS_DOMAIN
static final PropertyDescriptor<String> JAAS_DOMAIN
- .
JaasAuthenticationPlugin
public JaasAuthenticationPlugin()
getName
public String getName()
- Description copied from interface:
AuthenticationPlugin
- Returns the authentication plugin name.
- Specified by:
getName in interface AuthenticationPlugin<String>
- Returns:
- the plugin name
createConfigurationCapabilities
protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
- Description copied from class:
CRaSHPlugin
- Returns a list of
PropertyDescriptor this plugin requires for its configuration.
- Overrides:
createConfigurationCapabilities in class CRaSHPlugin<AuthenticationPlugin>
- Returns:
- the configuration capabilities
getCredentialType
public Class<String> getCredentialType()
- Description copied from interface:
AuthenticationPlugin
- Returns the credential type.
- Specified by:
getCredentialType in interface AuthenticationPlugin<String>
- Returns:
- the credential type
authenticate
public boolean authenticate(String username,
String password)
throws Exception
- Description copied from interface:
AuthenticationPlugin
- Returns true if the user is authentified by its username and credential.
- Specified by:
authenticate in interface AuthenticationPlugin<String>
- Parameters:
username - the usernamepassword - the credential
- Returns:
- true if authentication succeeded
- Throws:
Exception - any exception that would prevent authentication to happen
getImplementation
public AuthenticationPlugin getImplementation()
- Description copied from class:
CRaSHPlugin
- Returns the implementation.
- Specified by:
getImplementation in class CRaSHPlugin<AuthenticationPlugin>
- Returns:
- the implementation
Copyright © 2013 eXo Platform SAS. All Rights Reserved.