org.apache.directory.shared.ldap.codec.extended.operations.certGeneration
Class CertGenerationStatesEnum

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.extended.operations.certGeneration.CertGenerationStatesEnum
All Implemented Interfaces:
IStates

public class CertGenerationStatesEnum
extends java.lang.Object
implements IStates

This class store the CertGeneration's grammar constants. It is also used for debugging purposes.

Version:
$Rev: 664290 $, $Date: 2008-06-07 11:58:06 +0530 (Sat, 07 Jun 2008) $,
Author:
Apache Directory Project

Field Summary
static int CERT_GENERATION_REQUEST_SEQUENCE_STATE
          sequence
static int ISSUER_STATE
          the issuer DN
static int KEY_ALGORITHM_STATE
          the key algorithm
static int LAST_CERT_GENERATION_STATE
          terminal state
static int START_STATE
          start state
static int SUBJECT_STATE
          the subject DN
static int TARGETDN_STATE
          the target DN
 
Fields inherited from interface org.apache.directory.shared.asn1.ber.grammar.IStates
END_STATE, GRAMMAR_END, INIT_GRAMMAR_STATE
 
Constructor Summary
CertGenerationStatesEnum()
           
 
Method Summary
 java.lang.String getGrammarName(IGrammar grammar)
          Get the grammar name
 java.lang.String getGrammarName(int grammar)
          Get the grammar name
static IStates getInstance()
          Get an instance of this class
 java.lang.String getState(int state)
          Get the string representing the state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_STATE

public static final int START_STATE
start state

See Also:
Constant Field Values

CERT_GENERATION_REQUEST_SEQUENCE_STATE

public static final int CERT_GENERATION_REQUEST_SEQUENCE_STATE
sequence

See Also:
Constant Field Values

TARGETDN_STATE

public static final int TARGETDN_STATE
the target DN

See Also:
Constant Field Values

ISSUER_STATE

public static final int ISSUER_STATE
the issuer DN

See Also:
Constant Field Values

SUBJECT_STATE

public static final int SUBJECT_STATE
the subject DN

See Also:
Constant Field Values

KEY_ALGORITHM_STATE

public static final int KEY_ALGORITHM_STATE
the key algorithm

See Also:
Constant Field Values

LAST_CERT_GENERATION_STATE

public static final int LAST_CERT_GENERATION_STATE
terminal state

See Also:
Constant Field Values
Constructor Detail

CertGenerationStatesEnum

public CertGenerationStatesEnum()
Method Detail

getGrammarName

public java.lang.String getGrammarName(IGrammar grammar)
Get the grammar name

Specified by:
getGrammarName in interface IStates
Parameters:
grammar - The grammar class
Returns:
The grammar name

getGrammarName

public java.lang.String getGrammarName(int grammar)
Get the grammar name

Specified by:
getGrammarName in interface IStates
Parameters:
grammar - The grammar code
Returns:
The grammar name

getState

public java.lang.String getState(int state)
Get the string representing the state

Specified by:
getState in interface IStates
Parameters:
state - The state number
Returns:
The String representing the state

getInstance

public static IStates getInstance()
Get an instance of this class

Returns:
An instance on this class


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