Class RemoteAuthenticationProvider
- java.lang.Object
-
- org.springframework.security.authentication.rcp.RemoteAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,AuthenticationProvider
@Deprecated public class RemoteAuthenticationProvider extends java.lang.Object implements AuthenticationProvider, org.springframework.beans.factory.InitializingBean
Deprecated.as of 5.6.0 with no replacementClient-side object which queries aRemoteAuthenticationManagerto validate an authentication request.A new
Authenticationobject is created by this class comprising the requestAuthenticationobject'sprincipal,credentialsand theGrantedAuthority[]s returned by theRemoteAuthenticationManager.The
RemoteAuthenticationManagershould not require any special username or password setting on the remoting client proxy factory to execute the call. Instead the entire authentication request must be encapsulated solely within theAuthenticationrequest object. In practical terms this means theRemoteAuthenticationManagerwill not be protected by BASIC or any other HTTP-level authentication.If authentication fails, a
RemoteAuthenticationExceptionwill be thrown. This exception should be caught and displayed to the user, enabling them to retry with alternative credentials etc.
-
-
Constructor Summary
Constructors Constructor Description RemoteAuthenticationProvider()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterPropertiesSet()Deprecated.Authenticationauthenticate(Authentication authentication)Deprecated.Performs authentication with the same contract asAuthenticationManager.authenticate(Authentication).RemoteAuthenticationManagergetRemoteAuthenticationManager()Deprecated.voidsetRemoteAuthenticationManager(RemoteAuthenticationManager remoteAuthenticationManager)Deprecated.booleansupports(java.lang.Class<?> authentication)Deprecated.Returnstrueif thisAuthenticationProvidersupports the indicatedAuthenticationobject.
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
Deprecated.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
authenticate
public Authentication authenticate(Authentication authentication) throws AuthenticationException
Deprecated.Description copied from interface:AuthenticationProviderPerforms authentication with the same contract asAuthenticationManager.authenticate(Authentication).- Specified by:
authenticatein interfaceAuthenticationProvider- Parameters:
authentication- the authentication request object.- Returns:
- a fully authenticated object including credentials. May return
nullif theAuthenticationProvideris unable to support authentication of the passedAuthenticationobject. In such a case, the nextAuthenticationProviderthat supports the presentedAuthenticationclass will be tried. - Throws:
AuthenticationException- if authentication fails.
-
getRemoteAuthenticationManager
public RemoteAuthenticationManager getRemoteAuthenticationManager()
Deprecated.
-
setRemoteAuthenticationManager
public void setRemoteAuthenticationManager(RemoteAuthenticationManager remoteAuthenticationManager)
Deprecated.
-
supports
public boolean supports(java.lang.Class<?> authentication)
Deprecated.Description copied from interface:AuthenticationProviderReturnstrueif 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)method to indicate anotherAuthenticationProvidershould be tried.Selection of an
AuthenticationProvidercapable of performing authentication is conducted at runtime theProviderManager.- Specified by:
supportsin interfaceAuthenticationProvider- Returns:
trueif the implementation can more closely evaluate theAuthenticationclass presented
-
-