EnclaveMode

public enum EnclaveMode extends Enum<EnclaveMode>

The mode that an enclave is running in, whether it's for safe for production, intended for debugging or uses simulated hardware.

Entries

MOCK
Link copied to clipboard
MOCK

The enclave is run within the same JVM as its host without any of the native infrastructure. There is absolutely NO security in this mode. This mode is ONLY provided to facilitate development on any OS and to enable fast unit testing and better debugging.

SIMULATION
Link copied to clipboard
SIMULATION

The enclave does not rely on a real secure hardware but rather runs off a simulation of one in software. There is absolutely NO security in this mode. This mode is ONLY provided to facilitate development on developer machines that may not have the necessary hardware (but have the correct OS).

DEBUG
Link copied to clipboard
DEBUG

The enclave requires a real secure hardware to run, however there is backdoor that's open that allows the host to inspect the enclave's memory. This is for debugging purposes. The enclave is NOT secure in this mode.

RELEASE
Link copied to clipboard
RELEASE

The enclave requires a real secure hardware to run. Only this mode gives the full security guarantees of Conclave.

Methods

getIsHardware
Link copied to clipboard
boolean getIsHardware()

True if the mode represents real hardware or false if the enclave environment is simulated in software.

Properties

isHardware
Link copied to clipboard
private boolean isHardware

True if the mode represents real hardware or false if the enclave environment is simulated in software.