org.crsh.auth
Interface AuthenticationPlugin

All Known Implementing Classes:
CrowdAuthenticationPlugin, JaasAuthenticationPlugin, SimpleAuthenticationPlugin

public interface AuthenticationPlugin


Field Summary
static PropertyDescriptor<String> AUTH
          The authentication plugin to use.
static AuthenticationPlugin NULL
          The plugin that never authenticates, returns the name value null.
 
Method Summary
 boolean authenticate(String username, String password)
          Returns true if the user is authentified by its username and password.
 String getName()
          Returns the authentication plugin name.
 

Field Detail

AUTH

static final PropertyDescriptor<String> AUTH
The authentication plugin to use.


NULL

static final AuthenticationPlugin NULL
The plugin that never authenticates, returns the name value null.

Method Detail

getName

String getName()
Returns the authentication plugin name.

Returns:
the plugin name

authenticate

boolean authenticate(String username,
                     String password)
                     throws Exception
Returns true if the user is authentified by its username and password.

Parameters:
username - the username
password - the password
Returns:
true if authentication succeeded
Throws:
Exception - any exception that would prevent authentication to happen


Copyright © 2013 eXo Platform SAS. All Rights Reserved.