public class KerberosName
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KerberosName.BadFormatString |
static class |
KerberosName.NoMatchingRule |
| Constructor and Description |
|---|
KerberosName(java.lang.String name)
Create a name from the full Kerberos principal name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDefaultRealm()
Get the configured default realm.
|
java.lang.String |
getHostName()
Get the second component of the name.
|
java.lang.String |
getRealm()
Get the realm of the name.
|
java.lang.String |
getServiceName()
Get the first component of the name.
|
java.lang.String |
getShortName()
Get the translation of the principal name into an operating system
user name.
|
static void |
main(java.lang.String[] args) |
static void |
printRules() |
static void |
setConfiguration(org.apache.hadoop.conf.Configuration conf)
Set the static configuration to get the rules.
|
static void |
setRules(java.lang.String ruleString)
Set the rules.
|
java.lang.String |
toString()
Put the name back together from the parts.
|
public KerberosName(java.lang.String name)
name - public java.lang.String getDefaultRealm()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getServiceName()
public java.lang.String getHostName()
public java.lang.String getRealm()
public static void setConfiguration(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
conf - the new configurationjava.io.IOExceptionpublic static void setRules(java.lang.String ruleString)
ruleString - the rules string.public java.lang.String getShortName()
throws java.io.IOException
java.io.IOExceptionpublic static void printRules()
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2011-2014 Red Hat. All Rights Reserved.