org.springframework.extensions.surf.support
Class DefaultUserFactory
java.lang.Object
org.springframework.extensions.surf.support.BaseFactory
org.springframework.extensions.surf.support.AbstractUserFactory
org.springframework.extensions.surf.support.DefaultUserFactory
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, UserFactory
public class DefaultUserFactory
- extends AbstractUserFactory
The default Web Framework implementation of UserFactory.
This is a very uninteresting user factory which simply returns
unauthenticated users. In other words, all users essentially
authenticate which allows a site to run in "guest" mode (NOP users).
- Author:
- muzquiano
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultUserFactory
public DefaultUserFactory()
authenticate
public boolean authenticate(javax.servlet.http.HttpServletRequest request,
String username,
String password)
- Description copied from class:
AbstractUserFactory
- Authentication the user given the supplied username/password
- Specified by:
authenticate
in interface UserFactory
- Specified by:
authenticate
in class AbstractUserFactory
- Returns:
- success/failure
loadUser
public User loadUser(RequestContext context,
String userId,
String endpointId)
throws UserFactoryException
- Description copied from class:
AbstractUserFactory
- Load the user from a store
- Specified by:
loadUser
in interface UserFactory
- Specified by:
loadUser
in class AbstractUserFactory
- Returns:
- User
- Throws:
UserFactoryException
loadUser
public User loadUser(RequestContext context,
String userId)
throws UserFactoryException
- Description copied from class:
AbstractUserFactory
- Load the user from a store
- Specified by:
loadUser
in interface UserFactory
- Specified by:
loadUser
in class AbstractUserFactory
- Returns:
- User
- Throws:
UserFactoryException
Copyright © 2009 SpringSource, Inc. All Rights Reserved.