|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.security.authentication.util.KerberosName
@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"})
@InterfaceStability.Evolving
public class KerberosNameThis class implements parsing and handling of Kerberos principal names. In particular, it splits them apart and translates them down into local operating system names.
| Nested Class Summary | |
|---|---|
static class |
KerberosName.BadFormatString
|
static class |
KerberosName.NoMatchingRule
|
| Constructor Summary | |
|---|---|
KerberosName(String name)
Create a name from the full Kerberos principal name. |
|
| Method Summary | |
|---|---|
String |
getDefaultRealm()
Get the configured default realm. |
String |
getHostName()
Get the second component of the name. |
String |
getRealm()
Get the realm of the name. |
static String |
getRules()
Get the rules. |
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 boolean |
hasRulesBeenSet()
Indicates if the name rules have been set. |
static void |
setRules(String ruleString)
Set the rules. |
String |
toString()
Put the name back together from the parts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KerberosName(String name)
name - | Method Detail |
|---|
public String getDefaultRealm()
public String toString()
toString in class Objectpublic String getServiceName()
public String getHostName()
public String getRealm()
public String getShortName()
throws IOException
IOExceptionpublic static void setRules(String ruleString)
ruleString - the rules string.public static String getRules()
public static boolean hasRulesBeenSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||