org.deegree.security
Class UserPasswordAuthentication
java.lang.Object
org.deegree.security.AbstractAuthentication
org.deegree.security.UserPasswordAuthentication
public class UserPasswordAuthentication
- extends AbstractAuthentication
- Version:
- $Revision: 6251 $, $Date: 2007-03-19 16:59:28 +0100 (Mo, 19 Mrz 2007) $
- Author:
- Andreas Poth, last edited by: $Author: poth $
Constructor Summary |
UserPasswordAuthentication(java.lang.String authenticationName,
java.util.Map<java.lang.String,java.lang.String> initParams)
|
Method Summary |
User |
authenticate(java.util.Map<java.lang.String,java.lang.String> params)
authenticates a user and returns an instance of User if authentication has been successfull. |
User |
authenticate(java.util.Map<java.lang.String,java.lang.String> params,
javax.servlet.http.HttpServletRequest request)
authenticates a user and returns an instance of User if authentication has been successfull. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUTH_PARAM_USER
protected static final java.lang.String AUTH_PARAM_USER
- See Also:
- Constant Field Values
AUTH_PARAM_PASSWORD
protected static final java.lang.String AUTH_PARAM_PASSWORD
- See Also:
- Constant Field Values
UserPasswordAuthentication
public UserPasswordAuthentication(java.lang.String authenticationName,
java.util.Map<java.lang.String,java.lang.String> initParams)
- Parameters:
authenticationName
- initParams
-
authenticate
public User authenticate(java.util.Map<java.lang.String,java.lang.String> params,
javax.servlet.http.HttpServletRequest request)
throws WrongCredentialsException
- Description copied from class:
AbstractAuthentication
- authenticates a user and returns an instance of
User
if authentication has been successfull. Otherwise a
WrongCredentialsException will be thrown.
- Specified by:
authenticate
in class AbstractAuthentication
- Parameters:
params
- authentication parameters
- Returns:
- an instance of User
- Throws:
WrongCredentialsException
- if authentication was not successfull
authenticate
public User authenticate(java.util.Map<java.lang.String,java.lang.String> params)
throws WrongCredentialsException
- Description copied from class:
AbstractAuthentication
- authenticates a user and returns an instance of
User
if authentication has been successfull. Otherwise a
WrongCredentialsException will be thrown.
- Specified by:
authenticate
in class AbstractAuthentication
- Parameters:
params
- authentication parameters
- Returns:
- an instance of User
- Throws:
WrongCredentialsException
- if authentication was not successfull
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org