public class KerberosName extends Object
Copied from Apache ZooKeeper KerberosName.
| Modifier and Type | Class and Description |
|---|---|
static class |
KerberosName.BadFormatString |
static class |
KerberosName.NoMatchingRule |
| Constructor and Description |
|---|
KerberosName(String name)
Create a name from the full Kerberos principal name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultRealm()
Get the configured default realm.
|
static String |
getDefaultRealm2() |
String |
getHostName()
Get the second component of the name.
|
String |
getRealm()
Get the realm of the name.
|
String |
getServiceName()
Get the first component of the name.
|
String |
getShortName()
Get the translation of the principal name into an operating system
user name.
|
static void |
main(String[] args) |
static void |
setConfiguration()
Set the static configuration to get the rules.
|
String |
toString()
Put the name back together from the parts.
|
public KerberosName(String name)
name - public static String getDefaultRealm2() throws ClassNotFoundException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
public String getDefaultRealm()
public String toString()
public String getServiceName()
public String getHostName()
public String getRealm()
public static void setConfiguration()
throws IOException
IOExceptionpublic String getShortName() throws IOException
IOExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.