API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.security.auth.kerberos. KerberosPrincipal View Source
Author(s)
Mayank Upadhyay
Since
1.4
Version
1.22, 07/27/06
Serial
Hierarchy
 Object
      KerberosPrincipal
Implements
 Principal
 Serializable
Subclasses
Description
publicfinal class KerberosPrincipal
  This class encapsulates a Kerberos principal.
See also:   
Constructors
public KerberosPrincipal (String name)
  Constructs a KerberosPrincipal from the provided string input.
public KerberosPrincipal (String name, int nameType)
  Constructs a KerberosPrincipal from the provided string and name type input.
Methods
Hide/Show inherited methods
public boolean equals (Object other) [Specified in Principal]
  Compares the specified Object with this Principal for equality.
public String getName () [Specified in Principal]
  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 getNameType ()
  Returns the name type of the KerberosPrincipal.
public String getRealm ()
  Returns the realm component of this Kerberos principal.
public int hashCode () [Specified in Principal]
  Returns a hashcode for this principal.
public String toString () [Specified in Principal]
Fields
Hide/Show inherited fields
publicfinalstatic int KRB_NT_PRINCIPAL = "1"
user principal name type.
publicfinalstatic int KRB_NT_SRV_HST = "3"
service with host name as instance (telnet, rcommands) name type.
publicfinalstatic int KRB_NT_SRV_INST = "2"
service and other unique instance (krbtgt) name type.
publicfinalstatic int KRB_NT_SRV_XHST = "4"
service with host as remaining components name type.
publicfinalstatic int KRB_NT_UID = "5"
unique ID name type.
publicfinalstatic int KRB_NT_UNKNOWN = "0"
unknown name type.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar