public class KustoTrustedEndpoints extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
enableWellKnownKustoEndpointsValidation |
| Constructor and Description |
|---|
KustoTrustedEndpoints() |
| Modifier and Type | Method and Description |
|---|---|
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).
|
static void |
setOverridePolicy(Predicate<String> matcher) |
static void |
validateTrustedEndpoint(String uri)
Throw an exception if the endpoint specified is not trusted.
|
static void |
validateTrustedEndpoint(String uri,
String loginEndpoint)
Throw an exception if the endpoint specified is not trusted.
|
static void |
validateTrustedEndpoint(URI uri,
String loginEndpoint)
Is the endpoint uri trusted?
|
public static boolean enableWellKnownKustoEndpointsValidation
public static void setOverridePolicy(Predicate<String> matcher)
matcher - Rules that determine if a hostname is a valid/trusted Kusto endpoint
(replaces existing rules). NuisLocalAddressolicy".public static void validateTrustedEndpoint(String uri, String loginEndpoint) throws KustoClientInvalidConnectionStringException
uri - - Kusto endpointloginEndpoint - The login endpoint to check against.KustoClientInvalidConnectionStringException - - Endpoint is not a trusted Kusto endpointpublic static void validateTrustedEndpoint(String uri) throws KustoClientInvalidConnectionStringException
uri - - Kusto endpointKustoClientInvalidConnectionStringException - - Endpoint is not a trusted Kusto endpointpublic static void validateTrustedEndpoint(URI uri, String loginEndpoint) throws KustoClientInvalidConnectionStringException
uri - The endpoint to inspect.loginEndpoint - The login endpoint to check against.KustoClientInvalidConnectionStringException - - Endpoint is not a trusted Kusto endpointCopyright © 2023. All rights reserved.