org.hippoecm.hst.security
Interface AuthenticationProvider

All Known Implementing Classes:
HippoAuthenticationProvider, JcrAuthenticationProvider

public interface AuthenticationProvider

AuthenticationProvider

Configures an authentication provider.

Version:
$Id$

Method Summary
 User authenticate(String userName, char[] password)
          Authenticate a user.
 Set<Role> getRolesByUsername(String username)
          Returns security roles of the given username
 

Method Detail

authenticate

User authenticate(String userName,
                  char[] password)
                  throws SecurityException
Authenticate a user.

Parameters:
userName - The user name.
password - The user password.
Returns:
the User
Throws:
SecurityException

getRolesByUsername

Set<Role> getRolesByUsername(String username)
                             throws SecurityException
Returns security roles of the given username

Parameters:
user -
Returns:
Throws:
SecurityException


Copyright © 2008-2012 Hippo. All Rights Reserved.