public class InterNodeCommunicationAuthenticationProvider extends Object implements AuthenticationProvider
Authentication provider for the InterNodeCommunicationWebApplication.
This authentication provider uses the
InterNodeCommunicationAuthenticationService for validating the
credentials supplied with a request. This way, it can validate that the
request was sent by another server belonging to the same cluster because only
such a server should have access to the shared secret that is needed to
generate valid credentials.
| Constructor and Description |
|---|
InterNodeCommunicationAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(Authentication authentication) |
void |
setAuthenticationService(InterNodeCommunicationAuthenticationService authenticationService)
Sets the inter-node-communication authentication service used by this
authentication provider.
|
boolean |
supports(Class<?> authentication) |
public InterNodeCommunicationAuthenticationProvider()
@Autowired public void setAuthenticationService(InterNodeCommunicationAuthenticationService authenticationService)
authenticate(Authentication) method. Typically, this method is
called automatically by the Spring container.authenticationService - inter-node-communication authentication service for this
server.public Authentication authenticate(Authentication authentication) throws AuthenticationException
authenticate in interface AuthenticationProviderAuthenticationExceptionpublic boolean supports(Class<?> authentication)
supports in interface AuthenticationProviderCopyright © 2011–2017 aquenos GmbH. All rights reserved.