Module org.elasticsearch.security
Class CrossClusterAccessAuthenticationService
java.lang.Object
org.elasticsearch.xpack.security.authc.CrossClusterAccessAuthenticationService
-
Constructor Summary
ConstructorsConstructorDescriptionCrossClusterAccessAuthenticationService(ClusterService clusterService, ApiKeyService apiKeyService, AuthenticationService authenticationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(String action, TransportRequest request, ActionListener<Authentication> listener) extractApiKeyCredentialsFromHeaders(Map<String, String> headers) static IllegalArgumentExceptionrequiredHeaderMissingException(String headerKey) voidtryAuthenticate(Map<String, String> headers, ActionListener<Void> listener) voidtryAuthenticate(ApiKeyService.ApiKeyCredentials credentials, ActionListener<Void> listener)
-
Constructor Details
-
CrossClusterAccessAuthenticationService
public CrossClusterAccessAuthenticationService(ClusterService clusterService, ApiKeyService apiKeyService, AuthenticationService authenticationService)
-
-
Method Details
-
authenticate
public void authenticate(String action, TransportRequest request, ActionListener<Authentication> listener) -
tryAuthenticate
-
tryAuthenticate
public void tryAuthenticate(ApiKeyService.ApiKeyCredentials credentials, ActionListener<Void> listener) -
extractApiKeyCredentialsFromHeaders
public ApiKeyService.ApiKeyCredentials extractApiKeyCredentialsFromHeaders(Map<String, String> headers) -
requiredHeaderMissingException
-
getAuthenticationService
-