Package org.apache.drill.common
Class KerberosUtil
java.lang.Object
org.apache.drill.common.KerberosUtil
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
canonicalizeInstanceName
(String instanceName, String canonicalName) static String
static String
getPrincipalFromParts
(String primary, String instance, String realm) Returns principal of format primary/instance@REALM.static String[]
splitPrincipalIntoParts
(String principal) Expects principal of the format primary/instance@REALM or primary@REALM.
-
Field Details
-
KERBEROS_SASL_NAME
- See Also:
-
KERBEROS_SIMPLE_NAME
- See Also:
-
HOSTNAME_PATTERN
- See Also:
-
-
Method Details
-
getPrincipalFromParts
Returns principal of format primary/instance@REALM.- Parameters:
primary
- non-null primary componentinstance
- non-null instance component, can be empty stringrealm
- non-null realm component- Returns:
- principal of format primary/instance@REALM or primary@REALM
-
splitPrincipalIntoParts
Expects principal of the format primary/instance@REALM or primary@REALM.- Parameters:
principal
- principal- Returns:
- components
-
canonicalizeInstanceName
-
getDefaultRealm
public static String getDefaultRealm() throws ClassNotFoundException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
-