Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10696-05


oracle.security.crypto.fips
Class ModuleState

java.lang.Object
  extended by oracle.security.crypto.fips.ModuleState


public final class ModuleState
extends java.lang.Object

Constant codes for crypto module states.

The possible module states include:

Operational (non-error) states have integer values in the range 0 to 99 inclusive. Recoverable error state codes are between 100 to 199 inclusive. Unrecoverable error state codes are between 200 and 299 inclusive.

A recoverable error state may be cleared by invoking the FIPS_140_2.clearModuleState() method, which resets the module state to NOT_INITIALIZED.

An unrecoverable error state may not be cleared, and results in inoperability of the module until it is unloaded from the system and reloaded.

Since:
3.0
See Also:
FIPS_140_2, RNGTest, ModuleStateException, SelfTestException

Field Summary
static ModuleState ERROR_TEST_3DES_KNOWN_ANSWER
          Power-up Triple-DES known-answer test failed.
static ModuleState ERROR_TEST_AES_KNOWN_ANSWER
          Power-up AES known-answer test failed.
static ModuleState ERROR_TEST_DES_KNOWN_ANSWER
          Power-up DES known-answer test failed.
static ModuleState ERROR_TEST_DH_KEY_GENERATION
          Conditional Diffie-Hellman key generation pair-wise consistency test failed.
static ModuleState ERROR_TEST_DSA
          Power-up DSA sign/verify test failed.
static ModuleState ERROR_TEST_DSA_KEY_GENERATION
          Conditional DSA key generation pair-wise consistency test failed.
static ModuleState ERROR_TEST_HMAC_KNOWN_ANSWER
          Power-up HMAC known-answer test failed.
static ModuleState ERROR_TEST_RNG_CONTINUOUS
          Conditional continuous Random Number Generator test failed.
static ModuleState ERROR_TEST_RNG_KNOWN_ANSWER
          Power-up Random Number Generator known-answer test failed.
static ModuleState ERROR_TEST_RSA
          Power-up RSA encrypt/decrypt or sign/verify test failed.
static ModuleState ERROR_TEST_RSA_KEY_GENERATION
          Conditional RSA key generation pair-wise consistency test failed.
static ModuleState ERROR_TEST_SHA1_KNOWN_ANSWER
          Power-up SHA-1 known-answer test failed.
static ModuleState ERROR_TEST_SOFTWARE_INTEGRITY
          Power-up software integrity self-test failed.
static ModuleState NOT_INITIALIZED
          Power-up self-tests have not yet been run.
static ModuleState READY
          Power-up self-tests have been run and passed, and no conditional tests have failed.
static ModuleState TESTING
          Power-up self-tests in progress.

 

Method Summary
 java.lang.String getDescription()
          Returns the string description of this IntConstant, or null if none is set.
 int getValue()
          Returns the internally held int value.
 boolean isErrorState()
          Returns true if this ModuleState represents an error state, otherwise returns false.
 boolean isRecoverableErrorState()
          Returns true if this ModuleState represents a recoverable error state, otherwise returns false.
 boolean isUnrecoverableErrorState()
          Returns true if this ModuleState represents a recoverable error state, otherwise returns false.
 java.lang.String toString()
          Returns a string representation of this object, of the form "description(value)".

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

READY

public static final ModuleState READY
Power-up self-tests have been run and passed, and no conditional tests have failed.

NOT_INITIALIZED

public static final ModuleState NOT_INITIALIZED
Power-up self-tests have not yet been run.

TESTING

public static final ModuleState TESTING
Power-up self-tests in progress.

ERROR_TEST_DSA_KEY_GENERATION

public static final ModuleState ERROR_TEST_DSA_KEY_GENERATION
Conditional DSA key generation pair-wise consistency test failed.

ERROR_TEST_RSA_KEY_GENERATION

public static final ModuleState ERROR_TEST_RSA_KEY_GENERATION
Conditional RSA key generation pair-wise consistency test failed.

ERROR_TEST_DH_KEY_GENERATION

public static final ModuleState ERROR_TEST_DH_KEY_GENERATION
Conditional Diffie-Hellman key generation pair-wise consistency test failed.

ERROR_TEST_RNG_CONTINUOUS

public static final ModuleState ERROR_TEST_RNG_CONTINUOUS
Conditional continuous Random Number Generator test failed.

ERROR_TEST_DES_KNOWN_ANSWER

public static final ModuleState ERROR_TEST_DES_KNOWN_ANSWER
Power-up DES known-answer test failed.

ERROR_TEST_3DES_KNOWN_ANSWER

public static final ModuleState ERROR_TEST_3DES_KNOWN_ANSWER
Power-up Triple-DES known-answer test failed.

ERROR_TEST_AES_KNOWN_ANSWER

public static final ModuleState ERROR_TEST_AES_KNOWN_ANSWER
Power-up AES known-answer test failed.

ERROR_TEST_SHA1_KNOWN_ANSWER

public static final ModuleState ERROR_TEST_SHA1_KNOWN_ANSWER
Power-up SHA-1 known-answer test failed.

ERROR_TEST_DSA

public static final ModuleState ERROR_TEST_DSA
Power-up DSA sign/verify test failed.

ERROR_TEST_RSA

public static final ModuleState ERROR_TEST_RSA
Power-up RSA encrypt/decrypt or sign/verify test failed.

ERROR_TEST_SOFTWARE_INTEGRITY

public static final ModuleState ERROR_TEST_SOFTWARE_INTEGRITY
Power-up software integrity self-test failed.

ERROR_TEST_HMAC_KNOWN_ANSWER

public static final ModuleState ERROR_TEST_HMAC_KNOWN_ANSWER
Power-up HMAC known-answer test failed.

ERROR_TEST_RNG_KNOWN_ANSWER

public static final ModuleState ERROR_TEST_RNG_KNOWN_ANSWER
Power-up Random Number Generator known-answer test failed.

Method Detail

getValue

public int getValue()
Returns the internally held int value.

getDescription

public java.lang.String getDescription()
Returns the string description of this IntConstant, or null if none is set.

toString

public java.lang.String toString()
Returns a string representation of this object, of the form "description(value)".
Overrides:
toString in class java.lang.Object

isErrorState

public boolean isErrorState()
Returns true if this ModuleState represents an error state, otherwise returns false.
See Also:
isRecoverableErrorState(), isUnrecoverableErrorState()

isRecoverableErrorState

public boolean isRecoverableErrorState()
Returns true if this ModuleState represents a recoverable error state, otherwise returns false.

A recoverable error state is one reached as a result of failure of one of the conditional self-tests. These include the testKeyPair methods and the continuous random number generation tests in the RNGTest class.

A recoverable error state may be cleared by invoking the FIPS_140_2.clearModuleState() method, which resets the module state to NOT_INITIALIZED.


isUnrecoverableErrorState

public boolean isUnrecoverableErrorState()
Returns true if this ModuleState represents a recoverable error state, otherwise returns false.

An unrecoverable error state is one reached as a result of failure of one of the power-up self-tests, whether run unconditionally at module load time or, optionally, by user code at any subsequent time.


Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10696-05


Copyright © 2005, 2013, Oracle. All rights reserved.