public class DruidKerberosUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
DruidKerberosUtil() |
Modifier and Type | Method and Description |
---|---|
static HttpCookie |
getAuthCookie(CookieStore cookieStore,
URI uri) |
static String |
kerberosChallenge(String server)
This method always needs to be called within a doAs block so that the client's TGT credentials
can be read from the Subject.
|
static boolean |
needToSendCredentials(CookieStore cookieStore,
URI uri) |
static void |
removeAuthCookie(CookieStore cookieStore,
URI uri) |
public static String kerberosChallenge(String server) throws org.apache.hadoop.security.authentication.client.AuthenticationException
Exception
org.apache.hadoop.security.authentication.client.AuthenticationException
public static HttpCookie getAuthCookie(CookieStore cookieStore, URI uri)
public static void removeAuthCookie(CookieStore cookieStore, URI uri)
public static boolean needToSendCredentials(CookieStore cookieStore, URI uri)
Copyright © 2022 The Apache Software Foundation. All rights reserved.