public class KerberosName extends Object
限定符和类型 | 类和说明 |
---|---|
static class |
KerberosName.BadFormatString |
static class |
KerberosName.NoMatchingRule |
构造器和说明 |
---|
KerberosName(String name)
Create a name from the full Kerberos principal name.
|
限定符和类型 | 方法和说明 |
---|---|
String |
getDefaultRealm()
Get the configured default realm.
|
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 |
printRules() |
static void |
setConfiguration(Configuration conf)
Set the static configuration to get the rules.
|
static void |
setRules(String ruleString)
Set the rules.
|
String |
toString()
Put the name back together from the parts.
|
public KerberosName(String name)
name
- public String getDefaultRealm()
public String toString()
public String getServiceName()
public String getHostName()
public String getRealm()
public static void setConfiguration(Configuration conf) throws IOException
conf
- the new configurationIOException
public static void setRules(String ruleString)
ruleString
- the rules string.public String getShortName() throws IOException
IOException
public static void printRules() throws IOException
IOException
Copyright © 2009 The Apache Software Foundation