Package com.jk.webstack.security
Class NullAuthenticationProvider
java.lang.Object
com.jk.webstack.security.NullAuthenticationProvider
- All Implemented Interfaces:
 org.springframework.security.authentication.AuthenticationProvider
public class NullAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
This class is a placeholder authentication provider that always returns null
 during the authentication process.
- Version:
 - 1.0
 - Author:
 - Dr. Jalal H. Kiswani
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) This method performs authentication and always returns null.booleanThis method indicates whether this provider supports the specified authentication token class. 
- 
Constructor Details
- 
NullAuthenticationProvider
public NullAuthenticationProvider() 
 - 
 - 
Method Details
- 
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException This method performs authentication and always returns null.This method is intentionally empty as this provider does not perform any authentication..
- Specified by:
 authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Parameters:
 authentication- Specifies the authentication request object.- Returns:
 - null.
 - Throws:
 org.springframework.security.core.AuthenticationException- this exception is not thrown by this provider.
 - 
supports
This method indicates whether this provider supports the specified authentication token class.- Specified by:
 supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider- Parameters:
 authentication- Specifies the class of the authentication token.- Returns:
 - false.
 
 
 -