org.apache.directory.shared.kerberos.codec.types
Enum SamType

java.lang.Object
  extended by java.lang.Enum<SamType>
      extended by org.apache.directory.shared.kerberos.codec.types.SamType
All Implemented Interfaces:
Serializable, Comparable<SamType>

public enum SamType
extends Enum<SamType>

Type safe enumeration of Single-use Authentication Mechanism types

Author:
Apache Directory Project

Enum Constant Summary
PA_SAM_TYPE_APACHE
          safe SAM type enum for Apache Software Foundation
PA_SAM_TYPE_CRYPTOCARD
          safe SAM type enum for CRYPTOCard
PA_SAM_TYPE_DIGI_PATH
          safe SAM type enum for Digital Pathways
PA_SAM_TYPE_ENIGMA
          safe SAM type enum for Enigma Logic
PA_SAM_TYPE_SECURID
          safe SAM type enum for Security Dynamics
PA_SAM_TYPE_SKEY
          safe SAM type enum for Traditional S/Key
PA_SAM_TYPE_SKEY_K0
          safe SAM type enum for S/key where KDC has key 0
 
Method Summary
 int getOrdinal()
          Gets the ordinal value associated with this SAM type.
static SamType getTypeByOrdinal(int ordinal)
          Gets the ordinal by its ordinal value.
 String toString()
          Returns the name of the SamType.
static SamType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SamType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant 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

Method Detail

values

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

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

valueOf

public static SamType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

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

Overrides:
toString in class Enum<SamType>
Returns:
the name of the SAM type

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


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