org.apache.directory.server.kerberos.shared
Enum KerberosMessageType

java.lang.Object
  extended by java.lang.Enum<KerberosMessageType>
      extended by org.apache.directory.server.kerberos.shared.KerberosMessageType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<KerberosMessageType>

public enum KerberosMessageType
extends java.lang.Enum<KerberosMessageType>

An enum listing all the Kerberos V5 messages : AS-REQ (10) : Authentication Serveur Request AS-REP (11) : Authentication Serveur Response TGS-REQ (12) : Ticket Granting Server Request TGS-REP (13) : Ticket Granting Server Response AP-REQ (14) : Application Request AP-REP (15) : Application Response KRB-SAFE (20) : Safe (checksummed) application message KRB-PRIV (21) : Private (encrypted) application message KRB-CRED (22) : Private (encrypted) message to forward credentials ENC_AP_REP_PART (27) : Encrypted application reply part ENC_PRIV_PART (28) : Encrypted private message part KRB-ERROR (30) : A kerberos error response

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Enum Constant Summary
AP_REP
           
AP_REQ
           
AS_REP
           
AS_REQ
           
ENC_AP_REP_PART
           
ENC_PRIV_PART
           
KRB_CRED
           
KRB_ERROR
           
KRB_PRIV
           
KRB_SAFE
           
TGS_REP
           
TGS_REQ
           
 
Method Summary
 java.lang.String getMessage()
          Get the message associated with this element
 int getOrdinal()
          Get the int value for this element
static KerberosMessageType getTypeByOrdinal(int value)
          Get the instance of a KerberosMessageType from an int value
static KerberosMessageType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static KerberosMessageType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AS_REQ

public static final KerberosMessageType AS_REQ

AS_REP

public static final KerberosMessageType AS_REP

TGS_REQ

public static final KerberosMessageType TGS_REQ

TGS_REP

public static final KerberosMessageType TGS_REP

AP_REQ

public static final KerberosMessageType AP_REQ

AP_REP

public static final KerberosMessageType AP_REP

KRB_SAFE

public static final KerberosMessageType KRB_SAFE

KRB_PRIV

public static final KerberosMessageType KRB_PRIV

KRB_CRED

public static final KerberosMessageType KRB_CRED

ENC_AP_REP_PART

public static final KerberosMessageType ENC_AP_REP_PART

ENC_PRIV_PART

public static final KerberosMessageType ENC_PRIV_PART

KRB_ERROR

public static final KerberosMessageType KRB_ERROR
Method Detail

values

public static final KerberosMessageType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(KerberosMessageType c : KerberosMessageType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static KerberosMessageType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getOrdinal

public int getOrdinal()
Get the int value for this element

Returns:
The int value of this element

getMessage

public java.lang.String getMessage()
Get the message associated with this element

Returns:
The message associated with this element

getTypeByOrdinal

public static KerberosMessageType getTypeByOrdinal(int value)
Get the instance of a KerberosMessageType from an int value

Parameters:
value - The int value
Returns:
A KerberosMessageType associated with this value


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