public class DruidKerberosUtil extends Object
| Constructor and Description |
|---|
DruidKerberosUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
authenticateIfRequired(AuthenticationKerberosConfig config) |
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
Exceptionorg.apache.hadoop.security.authentication.client.AuthenticationExceptionpublic static void authenticateIfRequired(AuthenticationKerberosConfig config) throws IOException
IOExceptionpublic static boolean needToSendCredentials(CookieStore cookieStore, URI uri)
public static HttpCookie getAuthCookie(CookieStore cookieStore, URI uri)
public static void removeAuthCookie(CookieStore cookieStore, URI uri)
Copyright © 2011–2017. All rights reserved.