Module org.elasticsearch.security
Interface RemoteClusterAuthenticationService
- All Known Implementing Classes:
CrossClusterAccessAuthenticationService
public interface RemoteClusterAuthenticationService
Service interface for authenticating remote cluster requests.
This service handles authentication for cross-cluster requests. It provides methods to authenticate both full transport requests and credential headers only.
-
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.
-
Method Details
-
authenticate
Called to authenticates a remote cluster transport request.- 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
Called early (after transport headers were received) to authenticate a remote cluster transport request.- Parameters:
headers- map of request headers containing authentication credentialslistener- callback to receivenullon successful authentication, or an exception on authentication failure
-