org.apache.directory.server.kerberos.shared.messages.components
Class MessageComponentType

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

public class MessageComponentType
extends java.lang.Object
implements java.lang.Comparable<MessageComponentType>

Type-safe enumerator for message component types.

Version:
$Rev: 557095 $, $Date: 2007-07-18 02:28:32 +0200 (Wed, 18 Jul 2007) $
Author:
Apache Directory Project

Field Summary
static MessageComponentType KRB_AUTHENTICATOR
          Constant for the "authenticator" message component type.
static MessageComponentType KRB_ENC_AP_REP_PART
          Constant for the "encrypted application request part" message component type.
static MessageComponentType KRB_ENC_AS_REP_PART
          Constant for the "encrypted initial authentication part" message component type.
static MessageComponentType KRB_ENC_KRB_CRED_PART
          Constant for the "encrypted credentials forward part" message component type.
static MessageComponentType KRB_ENC_KRB_PRIV_PART
          Constant for the "encrypted application message part" message component type.
static MessageComponentType KRB_ENC_TGS_REP_PART
          Constant for the "encrypted TGS request part" message component type.
static MessageComponentType KRB_ENC_TKT_PART
          Constant for the "encrypted ticket part" message component type.
static MessageComponentType KRB_TKT
          Constant for the "ticket" message component type.
static MessageComponentType NULL
          Constant for the "null" message component type.
static java.util.List<MessageComponentType> VALUES
          A List of all the message component type constants.
 
Method Summary
 int compareTo(MessageComponentType that)
           
 int getOrdinal()
          Returns the number associated with this message component type.
static MessageComponentType getTypeByOrdinal(int type)
          Returns the message component 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

NULL

public static final MessageComponentType NULL
Constant for the "null" message component type.


KRB_TKT

public static final MessageComponentType KRB_TKT
Constant for the "ticket" message component type.


KRB_AUTHENTICATOR

public static final MessageComponentType KRB_AUTHENTICATOR
Constant for the "authenticator" message component type.


KRB_ENC_TKT_PART

public static final MessageComponentType KRB_ENC_TKT_PART
Constant for the "encrypted ticket part" message component type.


KRB_ENC_AS_REP_PART

public static final MessageComponentType KRB_ENC_AS_REP_PART
Constant for the "encrypted initial authentication part" message component type.


KRB_ENC_TGS_REP_PART

public static final MessageComponentType KRB_ENC_TGS_REP_PART
Constant for the "encrypted TGS request part" message component type.


KRB_ENC_AP_REP_PART

public static final MessageComponentType KRB_ENC_AP_REP_PART
Constant for the "encrypted application request part" message component type.


KRB_ENC_KRB_PRIV_PART

public static final MessageComponentType KRB_ENC_KRB_PRIV_PART
Constant for the "encrypted application message part" message component type.


KRB_ENC_KRB_CRED_PART

public static final MessageComponentType KRB_ENC_KRB_CRED_PART
Constant for the "encrypted credentials forward part" message component type.


VALUES

public static final java.util.List<MessageComponentType> VALUES
A List of all the message component type constants.

Method Detail

getTypeByOrdinal

public static MessageComponentType getTypeByOrdinal(int type)
Returns the message component type when specified by its ordinal.

Parameters:
type -
Returns:
The message component type.

getOrdinal

public int getOrdinal()
Returns the number associated with this message component type.

Returns:
The message component type ordinal.

compareTo

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

toString

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


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.