Module org.elasticsearch.security
Class DefaultOperatorOnlyRegistry
java.lang.Object
org.elasticsearch.xpack.security.operator.DefaultOperatorOnlyRegistry
- All Implemented Interfaces:
OperatorOnlyRegistry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck(String action, TransportRequest request) Check whether the given action and request qualify as operator-only.voidcheckRest(RestHandler restHandler, RestRequest restRequest) This method is only called if the user is not an operator.
-
Field Details
-
SIMPLE_ACTIONS
-
-
Constructor Details
-
DefaultOperatorOnlyRegistry
-
-
Method Details
-
check
Check whether the given action and request qualify as operator-only. The method returns null if the action+request is NOT operator-only. Other it returns a violation object that contains the message for details.- Specified by:
checkin interfaceOperatorOnlyRegistry
-
checkRest
Description copied from interface:OperatorOnlyRegistryThis method is only called if the user is not an operator. Implementations should fail the request if theRestRequestis not allowed to proceed by throwing anElasticsearchException. If the request should be handled by the associatedRestHandler, then this implementations should do nothing.- Specified by:
checkRestin interfaceOperatorOnlyRegistry
-