Class KustoTrustedEndpoints


  • public class KustoTrustedEndpoints
    extends Object
    A helper class to determine which DNS names are "well-known/trusted"' Kusto endpoints. Untrusted endpoints might require additional configuration before they can be used, for security reasons.
    • Field Detail

      • enableWellKnownKustoEndpointsValidation

        public static boolean enableWellKnownKustoEndpointsValidation
    • Constructor Detail

      • KustoTrustedEndpoints

        public KustoTrustedEndpoints()
    • Method Detail

      • setOverridePolicy

        public static void setOverridePolicy​(Predicate<String> matcher)
        Parameters:
        matcher - Rules that determine if a hostname is a valid/trusted Kusto endpoint (replaces existing rules). NuisLocalAddressolicy".
      • addTrustedHosts

        public static void addTrustedHosts​(List<MatchRule> rules,
                                           boolean replace)
        Adds the rules that determine if a hostname is a valid/trusted Kusto endpoint (extends existing rules).
        Parameters:
        rules - - A set of rules
        replace - - If true nullifies the last added rules