Module org.elasticsearch.security
Class CrossClusterAccessAuthenticationService
java.lang.Object
org.elasticsearch.xpack.security.authc.CrossClusterAccessAuthenticationService
- All Implemented Interfaces:
RemoteClusterAuthenticationService
public class CrossClusterAccessAuthenticationService
extends Object
implements RemoteClusterAuthenticationService
-
Constructor Summary
ConstructorsConstructorDescriptionCrossClusterAccessAuthenticationService(ClusterService clusterService, ApiKeyService apiKeyService, AuthenticationService authenticationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(String action, TransportRequest request, ActionListener<Authentication> listener) Called to authenticates a remote cluster transport request.voidauthenticateHeaders(Map<String, String> headers, ActionListener<Void> listener) Called early (after transport headers were received) to authenticate a remote cluster transport request.extractApiKeyCredentialsFromHeaders(Map<String, String> headers) static IllegalArgumentExceptionrequiredHeaderMissingException(String headerKey)
-
Constructor Details
-
CrossClusterAccessAuthenticationService
public CrossClusterAccessAuthenticationService(ClusterService clusterService, ApiKeyService apiKeyService, AuthenticationService authenticationService)
-
-
Method Details
-
authenticate
public void authenticate(String action, TransportRequest request, ActionListener<Authentication> listener) Description copied from interface:RemoteClusterAuthenticationServiceCalled to authenticates a remote cluster transport request.- Specified by:
authenticatein interfaceRemoteClusterAuthenticationService- Parameters:
action- the transport action being performedrequest- the transport request containing authentication headerslistener- callback to receive the authenticatedAuthenticationobject on success, or an exception on failure
-
authenticateHeaders
Description copied from interface:RemoteClusterAuthenticationServiceCalled early (after transport headers were received) to authenticate a remote cluster transport request.- Specified by:
authenticateHeadersin interfaceRemoteClusterAuthenticationService- Parameters:
headers- map of request headers containing authentication credentialslistener- callback to receivenullon successful authentication, or an exception on authentication failure
-
extractApiKeyCredentialsFromHeaders
public ApiKeyService.ApiKeyCredentials extractApiKeyCredentialsFromHeaders(Map<String, String> headers) -
requiredHeaderMissingException
-
getAuthenticationService
-