org.apache.directory.server.kerberos.shared.messages.value
Class PrincipalNameType

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.messages.value.PrincipalNameType
All Implemented Interfaces:
java.lang.Comparable<PrincipalNameType>

public final class PrincipalNameType
extends java.lang.Object
implements java.lang.Comparable<PrincipalNameType>

Version:
$Rev: 558662 $, $Date: 2007-07-23 04:51:52 -0400 (Mon, 23 Jul 2007) $
Author:
Apache Directory Project

Field Summary
static PrincipalNameType KRB_NT_ENTERPRISE
          Constant for the "Enterprise name; may be mapped to principal name" principal name type.
static PrincipalNameType KRB_NT_PRINCIPAL
          Constant for the "Just the name of the principal as in DCE, or for users" principal name type.
static PrincipalNameType KRB_NT_SMTP_NAME
          Constant for the "Name in form of SMTP email name (e.g., user@example.com)" principal name type.
static PrincipalNameType KRB_NT_SRV_HST
          Constant for the "Service with host name as instance (telnet, rcommands)" principal name type.
static PrincipalNameType KRB_NT_SRV_INST
          Constant for the "Service and other unique instance (krbtgt)" principal name type.
static PrincipalNameType KRB_NT_SRV_XHST
          Constant for the "Service with host as remaining components" principal name type.
static PrincipalNameType KRB_NT_UID
          Constant for the "Unique ID" principal name type.
static PrincipalNameType KRB_NT_UNKNOWN
          Constant for the "Name type not known" principal name type.
static PrincipalNameType KRB_NT_X500_PRINCIPAL
          Constant for the "Encoded X.509 Distinguished name [RFC2253]" principal name type.
static java.util.List<PrincipalNameType> VALUES
          A List of all the principal name type constants.
 
Method Summary
 int compareTo(PrincipalNameType that)
           
 int getOrdinal()
          Returns the number associated with this principal name type.
static PrincipalNameType getTypeByOrdinal(int type)
          Returns the principal name type when specified by its ordinal.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KRB_NT_UNKNOWN

public static final PrincipalNameType KRB_NT_UNKNOWN
Constant for the "Name type not known" principal name type.


KRB_NT_PRINCIPAL

public static final PrincipalNameType KRB_NT_PRINCIPAL
Constant for the "Just the name of the principal as in DCE, or for users" principal name type.


KRB_NT_SRV_INST

public static final PrincipalNameType KRB_NT_SRV_INST
Constant for the "Service and other unique instance (krbtgt)" principal name type.


KRB_NT_SRV_HST

public static final PrincipalNameType KRB_NT_SRV_HST
Constant for the "Service with host name as instance (telnet, rcommands)" principal name type.


KRB_NT_SRV_XHST

public static final PrincipalNameType KRB_NT_SRV_XHST
Constant for the "Service with host as remaining components" principal name type.


KRB_NT_UID

public static final PrincipalNameType KRB_NT_UID
Constant for the "Unique ID" principal name type.


KRB_NT_X500_PRINCIPAL

public static final PrincipalNameType KRB_NT_X500_PRINCIPAL
Constant for the "Encoded X.509 Distinguished name [RFC2253]" principal name type.


KRB_NT_SMTP_NAME

public static final PrincipalNameType KRB_NT_SMTP_NAME
Constant for the "Name in form of SMTP email name (e.g., user@example.com)" principal name type.


KRB_NT_ENTERPRISE

public static final PrincipalNameType KRB_NT_ENTERPRISE
Constant for the "Enterprise name; may be mapped to principal name" principal name type.


VALUES

public static final java.util.List<PrincipalNameType> VALUES
A List of all the principal name type constants.

Method Detail

getTypeByOrdinal

public static PrincipalNameType getTypeByOrdinal(int type)
Returns the principal name type when specified by its ordinal.

Parameters:
type -
Returns:
The principal name type.

getOrdinal

public int getOrdinal()
Returns the number associated with this principal name type.

Returns:
The principal name type ordinal.

compareTo

public int compareTo(PrincipalNameType that)
Specified by:
compareTo in interface java.lang.Comparable<PrincipalNameType>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2007 The Apache Software Foundation. All Rights Reserved.