Class RemoteAuthenticationProvider
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,AuthenticationProvider
RemoteAuthenticationManager to validate an
authentication request.
A new Authentication object is created by this class comprising the
request Authentication object's principal,
credentials and the GrantedAuthority[]s returned by the
RemoteAuthenticationManager.
The RemoteAuthenticationManager should 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 the
Authentication request object. In practical terms this means the
RemoteAuthenticationManager will not be protected by BASIC or any
other HTTP-level authentication.
If authentication fails, a RemoteAuthenticationException will be thrown.
This exception should be caught and displayed to the user, enabling them to retry with
alternative credentials etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.authenticate(Authentication authentication) Deprecated.Performs authentication with the same contract asAuthenticationManager.authenticate(Authentication).Deprecated.voidsetRemoteAuthenticationManager(RemoteAuthenticationManager remoteAuthenticationManager) Deprecated.booleanDeprecated.Returnstrueif thisAuthenticationProvidersupports the indicatedAuthenticationobject.
-
Constructor Details
-
RemoteAuthenticationProvider
public RemoteAuthenticationProvider()Deprecated.
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()Deprecated.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
authenticate
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
Deprecated. -
setRemoteAuthenticationManager
Deprecated. -
supports
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
-