Module org.elasticsearch.xcore
Class AuthorizationEngine.PrivilegesCheckResult
java.lang.Object
org.elasticsearch.xpack.core.security.authz.AuthorizationEngine.PrivilegesCheckResult
- Enclosing interface:
AuthorizationEngine
The result of a (has) privilege check. This is not to be used as an Elasticsearch authorization result (though clients can base their
authorization decisions on this response). The
allChecksSuccess field tells if all the privileges are granted over
all the resources. The details field is only present (non-null) if the check has been run in a detailed mode
AuthorizationEngine.PrivilegesToCheck.runDetailedCheck, and contains a run-down of which privileges are granted over which resources or not.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AuthorizationEngine.PrivilegesCheckResultstatic final AuthorizationEngine.PrivilegesCheckResult -
Constructor Summary
ConstructorsConstructorDescriptionPrivilegesCheckResult(boolean allChecksSuccess, AuthorizationEngine.PrivilegesCheckResult.Details details) -
Method Summary
-
Field Details
-
ALL_CHECKS_SUCCESS_NO_DETAILS
-
SOME_CHECKS_FAILURE_NO_DETAILS
-
-
Constructor Details
-
PrivilegesCheckResult
public PrivilegesCheckResult(boolean allChecksSuccess, AuthorizationEngine.PrivilegesCheckResult.Details details)
-
-
Method Details