| Modifier and Type | Field and Description |
|---|---|
| private transient String | |
| public static final int | KRB_NT_ENTERPRISE
Enterprise name (alias) |
| public static final int | KRB_NT_PRINCIPAL
user principal name type. |
| public static final int | KRB_NT_SRV_HST
service with host name as instance (telnet, rcommands) name type. |
| public static final int | KRB_NT_SRV_INST
service and other unique instance (krbtgt) name type. |
| public static final int | KRB_NT_SRV_XHST
service with host as remaining components name type. |
| public static final int | KRB_NT_UID
unique ID name type. |
| public static final int | KRB_NT_UNKNOWN
unknown name type. |
| private transient int | |
| private transient String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | KerberosPrincipal(String
the principal name name)Constructs a |
| public | KerberosPrincipal(String
the principal name name, int the name type of the principal nameType)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the object passed in represents the same principal as this one, false otherwise.the object to compare to obj)Overrides java. Implements java. Compares the specified object with this principal for equality. |
| public String | Returns: the principal name.Implements java. The returned string corresponds to the single-string representation of a Kerberos Principal name as specified in Section 2.1 of RFC 1964. |
| public int | |
| public String | Returns: the realm component of this Kerberos principal.Returns the realm component of this Kerberos principal. |
| public int | Returns: a hash code for thisKerberosPrincipalOverrides java. Implements java. Returns a hash code for this |
| private void | readObject(ObjectInputStream
the ois)ObjectInputStream from which data is readReads this object from a stream (i.e., deserializes it) |
| public String | Returns: an informative textual representation of thisKerberosPrincipal.Overrides java. Implements java. Returns an informative textual representation of this |
| private void | writeObject(ObjectOutputStream
the oos)ObjectOutputStream to which data is writtenSave the |
| fullName | back to summary |
|---|---|
| private transient String fullName | |
| KRB_NT_ENTERPRISE | back to summary |
|---|---|
| public static final int KRB_NT_ENTERPRISE Enterprise name (alias)
| |
| KRB_NT_PRINCIPAL | back to summary |
|---|---|
| public static final int KRB_NT_PRINCIPAL user principal name type. | |
| KRB_NT_SRV_HST | back to summary |
|---|---|
| public static final int KRB_NT_SRV_HST service with host name as instance (telnet, rcommands) name type. | |
| KRB_NT_SRV_INST | back to summary |
|---|---|
| public static final int KRB_NT_SRV_INST service and other unique instance (krbtgt) name type. | |
| KRB_NT_SRV_XHST | back to summary |
|---|---|
| public static final int KRB_NT_SRV_XHST service with host as remaining components name type. | |
| KRB_NT_UID | back to summary |
|---|---|
| public static final int KRB_NT_UID unique ID name type. | |
| KRB_NT_UNKNOWN | back to summary |
|---|---|
| public static final int KRB_NT_UNKNOWN unknown name type. | |
| nameType | back to summary |
|---|---|
| private transient int nameType | |
| realm | back to summary |
|---|---|
| private transient String realm | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| KerberosPrincipal | back to summary |
|---|---|
| public KerberosPrincipal(String name) Constructs a If the input name does not contain a realm, the default realm
is used. The default realm can be specified either in a Kerberos
configuration file or via the Note that when this class or any other Kerberos-related class is initially loaded and initialized, it may read and cache the default realm from the Kerberos configuration file or via the java.security.krb5.realm system property (the value will be empty if no default realm is specified), such that any subsequent calls to set or change the default realm by setting the java.security.krb5.realm system property may be ignored.
| |
| KerberosPrincipal | back to summary |
|---|---|
| public KerberosPrincipal(String name, int nameType) Constructs a If the input name does not contain a realm, the default realm
is used. The default realm can be specified either in a Kerberos
configuration file or via the Note that when this class or any other Kerberos-related class is initially loaded and initialized, it may read and cache the default realm from the Kerberos configuration file or via the java.security.krb5.realm system property (the value will be empty if no default realm is specified), such that any subsequent calls to set or change the default realm by setting the java.security.krb5.realm system property may be ignored.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements java. Compares the specified object with this principal for equality.
Returns true if the given object is also a
| |
| getName | back to summary |
|---|---|
| public String getName() Implements java. The returned string corresponds to the single-string representation of a Kerberos Principal name as specified in Section 2.1 of RFC 1964.
| |
| getNameType | back to summary |
|---|---|
| public int getNameType() Returns the name type of the
| |
| getRealm | back to summary |
|---|---|
| public String getRealm() Returns the realm component of this Kerberos principal.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Returns a hash code for this
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException Reads this object from a stream (i.e., deserializes it)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Returns an informative textual representation of this
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream oos) throws IOException Save the
| |