org.crsh.auth
Interface AuthenticationPlugin

All Known Implementing Classes:
CrowdAuthenticationPlugin, JaasAuthenticationPlugin, SimpleAuthenticationPlugin

public interface AuthenticationPlugin


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.
 

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.