5a5d6e9ef2
Xpack license state contains a helper method to determine whether security is disabled due to license level defaults. Most code needs to know whether security is enabled, not disabled, but this method exists so that the security being explicitly disabled can be distinguished from licence level defaulting to disabled. However, in the case that security is explicitly disabled, the handlers in question are never registered, so security is implicitly not disabled explicitly, and thus we can share a single method to know whether licensing is enabled. |
||
---|---|---|
.. | ||
main | ||
minimumRuntime/java/org/elasticsearch/gradle | ||
test | ||
testKit |