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

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

public enum LastReqType
extends Enum<LastReqType>

The LastRequest types

Author:
Apache Directory Project

Enum Constant Summary
NONE
          Constant for the "none" last request type.
TIME_OF_INITIAL_REQ
          Constant for the "time of initial request" last request type.
TIME_OF_INITIAL_TGT
          Constant for the "time of initial ticket" last request type.
TIME_OF_LAST_RENEWAL
          Constant for the "time of last renewal" last request type.
TIME_OF_LAST_REQ
          Constant for the "time of last request" last request type.
TIME_OF_NEWEST_TGT
          Constant for the "time of newest ticket" last request type.
TIME_OF_PASSWORD_EXP
          Constant for the "time of password expiration" last request type.
 
Method Summary
static LastReqType getTypeByValue(int type)
          Returns the last request type when specified by its ordinal.
 int getValue()
          Returns the number associated with this last request type.
 String toString()
           
static LastReqType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LastReqType[] 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

NONE

public static final LastReqType NONE
Constant for the "none" last request type.


TIME_OF_INITIAL_TGT

public static final LastReqType TIME_OF_INITIAL_TGT
Constant for the "time of initial ticket" last request type.


TIME_OF_INITIAL_REQ

public static final LastReqType TIME_OF_INITIAL_REQ
Constant for the "time of initial request" last request type.


TIME_OF_NEWEST_TGT

public static final LastReqType TIME_OF_NEWEST_TGT
Constant for the "time of newest ticket" last request type.


TIME_OF_LAST_RENEWAL

public static final LastReqType TIME_OF_LAST_RENEWAL
Constant for the "time of last renewal" last request type.


TIME_OF_LAST_REQ

public static final LastReqType TIME_OF_LAST_REQ
Constant for the "time of last request" last request type.


TIME_OF_PASSWORD_EXP

public static final LastReqType TIME_OF_PASSWORD_EXP
Constant for the "time of password expiration" last request type.

Method Detail

values

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

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

valueOf

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

getTypeByValue

public static LastReqType getTypeByValue(int type)
Returns the last request type when specified by its ordinal.

Parameters:
type - The numeric type
Returns:
The last request type.

getValue

public int getValue()
Returns the number associated with this last request type.

Returns:
The last request type ordinal.

toString

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


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