deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.security
Class AbstractAuthentication

java.lang.Object
  extended by org.deegree.security.AbstractAuthentication
Direct Known Subclasses:
IPAddressAuthentication, UserPasswordAuthentication, UserPrincipalAuthentication, WASAuthentication

public abstract class AbstractAuthentication
extends java.lang.Object

Version:
$Revision: 6251 $, $Date: 2007-03-19 16:59:28 +0100 (Mo, 19 Mrz 2007) $
Author:
Andreas Poth, last edited by: $Author: poth $

Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> initParams
           
 
Constructor Summary
AbstractAuthentication(java.lang.String authenticationName, java.util.Map<java.lang.String,java.lang.String> initParams)
           
 
Method Summary
abstract  User authenticate(java.util.Map<java.lang.String,java.lang.String> params)
          Deprecated. use #authenticate(HttpServletRequest) instead
abstract  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.
 java.lang.String getAuthenticationName()
          returns the name of the authentication method implemented by a class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initParams

protected java.util.Map<java.lang.String,java.lang.String> initParams
Constructor Detail

AbstractAuthentication

public AbstractAuthentication(java.lang.String authenticationName,
                              java.util.Map<java.lang.String,java.lang.String> initParams)
Parameters:
authenticationName -
initParams -
Method Detail

getAuthenticationName

public java.lang.String getAuthenticationName()
returns the name of the authentication method implemented by a class

Returns:
name of the authentication method implemented by a class

authenticate

public abstract User authenticate(java.util.Map<java.lang.String,java.lang.String> params)
                           throws WrongCredentialsException
Deprecated. use #authenticate(HttpServletRequest) instead

authenticates a user and returns an instance of User if authentication has been successfull. Otherwise a WrongCredentialsException will be thrown.

Parameters:
params - authentication parameters
Returns:
an instance of User
Throws:
WrongCredentialsException - if authentication was not successfull

authenticate

public abstract User authenticate(java.util.Map<java.lang.String,java.lang.String> params,
                                  javax.servlet.http.HttpServletRequest request)
                           throws WrongCredentialsException
authenticates a user and returns an instance of User if authentication has been successfull. Otherwise a WrongCredentialsException will be thrown.

Parameters:
params - authentication parameters
request -
Returns:
an instance of User
Throws:
WrongCredentialsException - if authentication was not successfull

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org