javax.security.auth.kerberos
public final class KerberosPrincipal extends Object implements Serializable, Principal
Since: 1.4
| Field Summary | |
|---|---|
| static int | KRB_NT_PRINCIPAL
Constant from the RFC: "Just the name of the principal as in DCE, or
for users". |
| static int | KRB_NT_SRV_HST
Constant from the RFC: "Service and other unique instance (krbtgt)". |
| static int | KRB_NT_SRV_INST
Constant from the RFC: "Service with host name as instance (telnet,
rcommands)". |
| static int | KRB_NT_SRV_XHST
Constant from the RFC: "Service with host as remaining components". |
| static int | KRB_NT_UID
Constant from the RFC: "Unique ID". |
| static int | KRB_NT_UNKNOWN
Constant from the RFC: "Name type not known". |
| Constructor Summary | |
|---|---|
| KerberosPrincipal(String name)
Create a new instance with the given name and a type of
{@link #KRB_NT_PRINCIPAL}. | |
| KerberosPrincipal(String name, int type)
Create a new instance with the given name and type. | |
| Method Summary | |
|---|---|
| boolean | equals(Object other) |
| String | getName()
Return the name of this principal. |
| int | getNameType()
Return the type of this principal. |
| String | getRealm()
Return the realm of this principal. |
| int | hashCode() |
| String | toString() |
Parameters: name the principal's name
Parameters: name the principal's name type the principal's type