类 KerberosName
java.lang.Object
org.apache.pulsar.common.sasl.KerberosName
This class implements parsing and handling of Kerberos principal names. In
particular, it splits them apart and translates them down into local
operating system names.
Copied from Apache ZooKeeper KerberosName.
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Get the configured default realm.static StringGet the second component of the name.getRealm()Get the realm of the name.Get the first component of the name.Get the translation of the principal name into an operating system user name.static voidstatic voidSet the static configuration to get the rules.toString()Put the name back together from the parts.
-
构造器详细资料
-
KerberosName
Create a name from the full Kerberos principal name.- 参数:
name-
-
-
方法详细资料
-
getDefaultRealm2
public static String getDefaultRealm2() throws ClassNotFoundException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException -
getDefaultRealm
Get the configured default realm.- 返回:
- the default realm from the krb5.conf
-
toString
Put the name back together from the parts. -
getServiceName
Get the first component of the name.- 返回:
- the first section of the Kerberos principal name
-
getHostName
Get the second component of the name.- 返回:
- the second section of the Kerberos principal name, and may be null
-
getRealm
Get the realm of the name.- 返回:
- the realm of the name, may be null
-
setConfiguration
Set the static configuration to get the rules.- 抛出:
IOException
-
getShortName
Get the translation of the principal name into an operating system user name.- 返回:
- the short name
- 抛出:
IOException
-
main
- 抛出:
Exception
-