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

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

public enum TransitedEncodingType
extends Enum<TransitedEncodingType>

The list of possible value for the TransitedEncoding type

Author:
Apache Directory Project

Enum Constant Summary
DOMAIN_X500_COMPRESS
          Constant for the "Domain X500 compress" transited encoding type.
NULL
          Constant for the "null" transited encoding type.
 
Method Summary
static TransitedEncodingType getTypeByOrdinal(int type)
          Returns the transited encoding type when specified by its value.
 int getValue()
          Returns the number associated with this transited encoding type.
 String toString()
           
static TransitedEncodingType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TransitedEncodingType[] 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

NULL

public static final TransitedEncodingType NULL
Constant for the "null" transited encoding type.


DOMAIN_X500_COMPRESS

public static final TransitedEncodingType DOMAIN_X500_COMPRESS
Constant for the "Domain X500 compress" transited encoding type.

Method Detail

values

public static TransitedEncodingType[] 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 (TransitedEncodingType c : TransitedEncodingType.values())
    System.out.println(c);

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

valueOf

public static TransitedEncodingType 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

getTypeByOrdinal

public static TransitedEncodingType getTypeByOrdinal(int type)
Returns the transited encoding type when specified by its value.

Parameters:
type - The type we are looking for
Returns:
The transited encoding type.

getValue

public int getValue()
Returns the number associated with this transited encoding type.

Returns:
The transited encoding type value.

toString

public String toString()
Overrides:
toString in class Enum<TransitedEncodingType>
See Also:
Object.toString()


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