org.acegisecurity
Class MockAuthenticationManager
java.lang.Object
org.acegisecurity.AbstractAuthenticationManager
org.acegisecurity.MockAuthenticationManager
- All Implemented Interfaces:
- AuthenticationManager
public class MockAuthenticationManager
- extends AbstractAuthenticationManager
Simply accepts as valid whatever is passed to it, if
grantAccess is set to true.
- Version:
- $Id: MockAuthenticationManager.java,v 1.2 2005/11/17 00:55:49 benalex Exp $
- Author:
- Ben Alex, Wesley Hall
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockAuthenticationManager
public MockAuthenticationManager(boolean grantAccess)
MockAuthenticationManager
public MockAuthenticationManager()
doAuthentication
public Authentication doAuthentication(Authentication authentication)
throws AuthenticationException
- Description copied from class:
AbstractAuthenticationManager
Concrete implementations of this class override this method to provide
the authentication service.
The contract for this method is documented in the AuthenticationManager.authenticate(org.acegisecurity.Authentication).
- Specified by:
doAuthentication in class AbstractAuthenticationManager
- Parameters:
authentication - the authentication request object
- Returns:
- a fully authenticated object including credentials
- Throws:
AuthenticationException - if authentication fails
Copyright © 2004-2005 Acegi Technology Pty Limited. All Rights Reserved.