public final class SecurityUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
enableKerberosLogin(CConfiguration cConf)
Enables Kerberos authentication based on configuration.
|
static String |
expandPrincipal(String principal)
Expands _HOST in principal name with local hostname.
|
static boolean |
isKerberosEnabled(CConfiguration cConf) |
static void |
loginForMasterService(CConfiguration cConf) |
public static void enableKerberosLogin(CConfiguration cConf) throws IOException
cConf
- configuration object.IOException
@Nullable public static String expandPrincipal(@Nullable String principal) throws UnknownHostException
principal
- Kerberos principal nameUnknownHostException
- if the local hostname could not be resolved into an address.public static boolean isKerberosEnabled(CConfiguration cConf)
cConf
- CConfiguration object.public static void loginForMasterService(CConfiguration cConf) throws IOException, LoginException
IOException
LoginException
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.