Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

net.sf.acegisecurity.providers
Interface AuthenticationProvider  view AuthenticationProvider download AuthenticationProvider.java

All Known Implementing Classes:
TestingAuthenticationProvider

public interface AuthenticationProvider

Indicates a class can process a specific net.sf.acegisecurity.Authentication implementation.

Version:
$Id: AuthenticationProvider.java,v 1.3 2004/04/18 12:03:04 benalex Exp $

Method Summary
 net.sf.acegisecurity.Authentication authenticate(net.sf.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.
 

Method Detail

authenticate

public net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication authentication)
                                                 throws net.sf.acegisecurity.AuthenticationException
Performs authentication with the same contract as AuthenticationManager.authenticate(Authentication)>AuthenticationManager.authenticate(Authentication) 55 .


supports

public boolean supports(java.lang.Class authentication)
Returns true if this AuthenticationProvider supports the indicated Authentication object.

Returning true does not guarantee an AuthenticationProvider will be able to authenticate the presented instance of the Authentication class. It simply indicates it can support closer evaluation of it. An AuthenticationProvider can still return null from the authenticate(Authentication) 55 method to indicate another AuthenticationProvider should be tried.

Selection of an AuthenticationProvider capable of performing authentication is conducted at runtime the ProviderManager.