org.apache.directory.server.kerberos.shared.messages
Class MessageType

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

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

Version:
$Rev: 557095 $, $Date: 2007-07-17 20:28:32 -0400 (Tue, 17 Jul 2007) $
Author:
Apache Directory Project

Field Summary
static MessageType ENC_AP_REP_PART
          Constant for the "encrypted application reply part" message type.
static MessageType ENC_PRIV_PART
          Constant for the "encrypted private message part" message type.
static MessageType KRB_AP_REP
          Constant for the "application response" message type.
static MessageType KRB_AP_REQ
          Constant for the "application request" message type.
static MessageType KRB_AS_REP
          Constant for the "initial authentication response" message type.
static MessageType KRB_AS_REQ
          Constant for the "initial authentication request" message type.
static MessageType KRB_CRED
          Constant for the "private (encrypted) message to forward credentials" message type.
static MessageType KRB_ERROR
          Constant for the "error response" message type.
static MessageType KRB_PRIV
          Constant for the "private (encrypted) application message" message type.
static MessageType KRB_SAFE
          Constant for the "safe (checksummed) application message" message type.
static MessageType KRB_TGS_REP
          Constant for the "response to authentication based on TGT" message type.
static MessageType KRB_TGS_REQ
          Constant for the "request for authentication based on TGT" message type.
static MessageType NULL
          Constant for the "null" message type.
static java.util.List<MessageType> VALUES
          A list of all the message type constants.
 
Method Summary
 int compareTo(MessageType that)
           
 int getOrdinal()
          Returns the number associated with this message type.
static MessageType getTypeByOrdinal(int type)
          Returns the message 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 MessageType NULL
Constant for the "null" message type.


KRB_AS_REQ

public static final MessageType KRB_AS_REQ
Constant for the "initial authentication request" message type.


KRB_AS_REP

public static final MessageType KRB_AS_REP
Constant for the "initial authentication response" message type.


KRB_TGS_REQ

public static final MessageType KRB_TGS_REQ
Constant for the "request for authentication based on TGT" message type.


KRB_TGS_REP

public static final MessageType KRB_TGS_REP
Constant for the "response to authentication based on TGT" message type.


KRB_AP_REQ

public static final MessageType KRB_AP_REQ
Constant for the "application request" message type.


KRB_AP_REP

public static final MessageType KRB_AP_REP
Constant for the "application response" message type.


KRB_SAFE

public static final MessageType KRB_SAFE
Constant for the "safe (checksummed) application message" message type.


KRB_PRIV

public static final MessageType KRB_PRIV
Constant for the "private (encrypted) application message" message type.


KRB_CRED

public static final MessageType KRB_CRED
Constant for the "private (encrypted) message to forward credentials" message type.


ENC_AP_REP_PART

public static final MessageType ENC_AP_REP_PART
Constant for the "encrypted application reply part" message type.


ENC_PRIV_PART

public static final MessageType ENC_PRIV_PART
Constant for the "encrypted private message part" message type.


KRB_ERROR

public static final MessageType KRB_ERROR
Constant for the "error response" message type.


VALUES

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

Method Detail

getTypeByOrdinal

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

Parameters:
type -
Returns:
The message type.

getOrdinal

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

Returns:
The message type ordinal.

compareTo

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

toString

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


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