com.uwyn.rife.authentication.sessionvalidators
Class SimpleSessionValidatorFactory

java.lang.Object
  extended by com.uwyn.rife.authentication.sessionvalidators.SimpleSessionValidatorFactory
All Implemented Interfaces:
SessionValidatorFactory

public class SimpleSessionValidatorFactory
extends Object
implements SessionValidatorFactory

Factory that instantiates session validators based on the class name specified in element properties.

Element properties used:

"sessionvalidator_class"
Name of the session manager class. If the class name is not fully qualified, the package name com.uwyn.rife.authentication.sessionvalidators will be assumed.

Since:
1.6
Version:
$Revision: $
Author:
Steven Grimm (koreth[remove] at midwinter dot com), Geert Bevin (gbevin[remove] at uwyn dot com)
See Also:
SessionValidator

Field Summary
static String PROPERTYNAME_MANAGER_CLASS
          Element property that specifies the class name for session validators.
 
Constructor Summary
SimpleSessionValidatorFactory()
           
 
Method Summary
 SessionValidator getValidator(HierarchicalProperties properties)
          Returns the manager specified by properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTYNAME_MANAGER_CLASS

public static final String PROPERTYNAME_MANAGER_CLASS
Element property that specifies the class name for session validators.

See Also:
Constant Field Values
Constructor Detail

SimpleSessionValidatorFactory

public SimpleSessionValidatorFactory()
Method Detail

getValidator

public SessionValidator getValidator(HierarchicalProperties properties)
                              throws PropertyValueException
Description copied from interface: SessionValidatorFactory
Returns the manager specified by properties.

The specific properties that are used are determined by the implementation class.

Specified by:
getValidator in interface SessionValidatorFactory
Parameters:
properties - the properties that will setup the manager
Throws:
PropertyValueException - when an error occurred during the retrieval of the property values


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.