|
|||||||||
| Home >> All >> org >> acegisecurity >> [ providers overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.acegisecurity.providers
Class TestingAuthenticationProvider

java.lang.Objectorg.acegisecurity.providers.TestingAuthenticationProvider
- All Implemented Interfaces:
- AuthenticationProvider
- public class TestingAuthenticationProvider
- extends java.lang.Object
- implements AuthenticationProvider
- extends java.lang.Object
An AuthenticationProvider implementation for the TestingAuthenticationToken.
It simply accepts as valid whatever is contained within the
TestingAuthenticationToken.
The purpose of this implementation is to facilitate unit testing. This provider should never be enabled on a production system.
- Version:
- $Id: TestingAuthenticationProvider.java,v 1.3 2005/11/17 00:55:49 benalex Exp $
| Constructor Summary | |
TestingAuthenticationProvider()
|
|
| Method Summary | |
org.acegisecurity.Authentication |
authenticate(org.acegisecurity.Authentication authentication)
Performs authentication with the same contract as AuthenticationManager.authenticate(Authentication)> AuthenticationManager.authenticate(Authentication) 55 . |
boolean |
supports(java.lang.Class authentication)
Returns true if this AuthenticationProvider
supports the indicated Authentication object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
TestingAuthenticationProvider
public TestingAuthenticationProvider()
| Method Detail |
authenticate
public org.acegisecurity.Authentication authenticate(org.acegisecurity.Authentication authentication) throws org.acegisecurity.AuthenticationException
- Description copied from interface:
AuthenticationProvider - Performs authentication with the same contract as AuthenticationManager.authenticate(Authentication)>
AuthenticationManager.authenticate(Authentication)55 .- Specified by:
authenticatein interfaceAuthenticationProvider
supports
public boolean supports(java.lang.Class authentication)
- Description copied from interface:
AuthenticationProvider - Returns
trueif thisAuthenticationProvidersupports the indicatedAuthenticationobject.Returning
truedoes not guarantee anAuthenticationProviderwill be able to authenticate the presented instance of theAuthenticationclass. It simply indicates it can support closer evaluation of it. AnAuthenticationProvidercan still returnnullfrom theAuthenticationProvider.authenticate(Authentication)55 method to indicate anotherAuthenticationProvidershould be tried.Selection of an
AuthenticationProvidercapable of performing authentication is conducted at runtime theProviderManager.- Specified by:
supportsin interfaceAuthenticationProvider
|
|||||||||
| Home >> All >> org >> acegisecurity >> [ providers overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.acegisecurity.providers.TestingAuthenticationProvider