KerberosPrincipal


KerberosPrincipal javax.security.auth.kerberos

Java 1.4 serializable

This class represents a Kerberos principal, specified as a principal name with an optional realm. If no realm is specified in the name , the default realm (from the krb5.conf configuration file or from the java.security.krb5.realm system property) is used.

Figure 19-16. javax.security.auth.kerberos.KerberosPrincipal

 public final class  KerberosPrincipal  implements java.security.Principal, Serializable {  // Public Constructors  public  KerberosPrincipal  (String  name  );        public  KerberosPrincipal  (String  name  , int  nameType  );  // Public Constants  public static final int  KRB_NT_PRINCIPAL  ;  =1  public static final int  KRB_NT_SRV_HST  ;  =3  public static final int  KRB_NT_SRV_INST  ;  =2  public static final int  KRB_NT_SRV_XHST  ;  =4  public static final int  KRB_NT_UID  ;  =5  public static final int  KRB_NT_UNKNOWN  ;  =0   // Public Instance Methods  public int  getNameType  ( );        public String  getRealm  ( );  // Methods Implementing Principal  public boolean  equals  (Object  other  );        public String  getName  ( );        public int  hashCode  ( );        public String  toString  ( );   } 

Passed To

KerberosKey.KerberosKey( ) , KerberosTicket.KerberosTicket( )

Returned By

KerberosKey.getPrincipal( ) , KerberosTicket.{getClient( ) , getServer( )}



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net