Module org.elasticsearch.security
Class ServerTransportFilter
java.lang.Object
org.elasticsearch.xpack.security.transport.ServerTransportFilter
The server transport filter that should be used in nodes as it ensures that an incoming
request is properly authenticated and authorized
-
Constructor Summary
ConstructorsConstructorDescriptionServerTransportFilter(AuthenticationService authcService, AuthorizationService authzService, ThreadContext threadContext, boolean extractClientCert, DestructiveOperations destructiveOperations, SecurityContext securityContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidauthenticate(String securityAction, TransportRequest request, ActionListener<Authentication> authenticationListener) protected final ThreadContextvoidinbound(String action, TransportRequest request, TransportChannel transportChannel, ActionListener<Void> listener) Called just after the given request was received by the transport service.
-
Constructor Details
-
ServerTransportFilter
public ServerTransportFilter(AuthenticationService authcService, AuthorizationService authzService, ThreadContext threadContext, boolean extractClientCert, DestructiveOperations destructiveOperations, SecurityContext securityContext)
-
-
Method Details
-
inbound
public void inbound(String action, TransportRequest request, TransportChannel transportChannel, ActionListener<Void> listener) Called just after the given request was received by the transport service.Any exception thrown by this method will stop the request from being handled and the error will be sent back to the sender.
-
authenticate
protected void authenticate(String securityAction, TransportRequest request, ActionListener<Authentication> authenticationListener) -
getThreadContext
-