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 |
setConfiguration()
Set the static configuration to get 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.Object
public java.lang.String getServiceName()
public java.lang.String getHostName()
public java.lang.String getRealm()
public static void setConfiguration() throws java.io.IOException
conf
- the new configurationjava.io.IOException
public java.lang.String getShortName() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2023 The Apache Software Foundation