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

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

public final class SamType
extends java.lang.Object
implements java.lang.Comparable

Type safe enumeration of Single-use Authentication Mechanism types

Version:
$Rev: 434558 $
Author:
Apache Directory Project

Field Summary
static SamType PA_SAM_TYPE_APACHE
          safe SAM type enum for Apache Software Foundation
static SamType PA_SAM_TYPE_CRYPTOCARD
          safe SAM type enum for CRYPTOCard
static SamType PA_SAM_TYPE_DIGI_PATH
          safe SAM type enum for Digital Pathways
static SamType PA_SAM_TYPE_ENIGMA
          safe SAM type enum for Enigma Logic
static SamType PA_SAM_TYPE_SECURID
          safe SAM type enum for Security Dynamics
static SamType PA_SAM_TYPE_SKEY
          safe SAM type enum for Traditional S/Key
static SamType PA_SAM_TYPE_SKEY_K0
          safe SAM type enum for S/key where KDC has key 0
static java.util.List VALUES
          a list of all the sam type constants
 
Method Summary
 int compareTo(java.lang.Object that)
          Compares this type to another object hopefully one that is of the same type.
 int getOrdinal()
          Gets the ordinal value associated with this SAM type.
static SamType getTypeByOrdinal(int ordinal)
          Gets the ordinal by its ordinal value.
 java.lang.String toString()
          Returns the name of the SamType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PA_SAM_TYPE_ENIGMA

public static final SamType PA_SAM_TYPE_ENIGMA
safe SAM type enum for Enigma Logic


PA_SAM_TYPE_DIGI_PATH

public static final SamType PA_SAM_TYPE_DIGI_PATH
safe SAM type enum for Digital Pathways


PA_SAM_TYPE_SKEY_K0

public static final SamType PA_SAM_TYPE_SKEY_K0
safe SAM type enum for S/key where KDC has key 0


PA_SAM_TYPE_SKEY

public static final SamType PA_SAM_TYPE_SKEY
safe SAM type enum for Traditional S/Key


PA_SAM_TYPE_SECURID

public static final SamType PA_SAM_TYPE_SECURID
safe SAM type enum for Security Dynamics


PA_SAM_TYPE_CRYPTOCARD

public static final SamType PA_SAM_TYPE_CRYPTOCARD
safe SAM type enum for CRYPTOCard


PA_SAM_TYPE_APACHE

public static final SamType PA_SAM_TYPE_APACHE
safe SAM type enum for Apache Software Foundation


VALUES

public static final java.util.List VALUES
a list of all the sam type constants

Method Detail

toString

public java.lang.String toString()
Returns the name of the SamType.

Overrides:
toString in class java.lang.Object
Returns:
the name of the SAM type

compareTo

public int compareTo(java.lang.Object that)
Compares this type to another object hopefully one that is of the same type.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
that - the object to compare this SamType to
Returns:
ordinal - ( ( SamType ) that ).ordinal;

getTypeByOrdinal

public static SamType getTypeByOrdinal(int ordinal)
Gets the ordinal by its ordinal value.

Parameters:
ordinal - the ordinal value of the ordinal
Returns:
the type corresponding to the ordinal value

getOrdinal

public int getOrdinal()
Gets the ordinal value associated with this SAM type.

Returns:
the ordinal value associated with this SAM type