Asylo
|
A manager class responsible for creating and managing enclave instances. More...
Public Member Functions | |
void | close () |
void | loadEnclave (EnclaveLoadConfig config) |
Loads a new enclave utilizing the passed enclave loader configuration settings. More... | |
EnclaveClient | getEnclaveClient (String enclaveName) |
Returns the EnclaveClient which is loaded previously by calling loadEnclave(EnclaveLoadConfig). More... | |
void | destroyEnclaveClient (EnclaveClient enclaveClient, EnclaveFinal enclaveFinal) |
Destroys an enclave client. More... | |
Public Member Functions inherited from com.asylo.client.AutoCloseablePointer | |
void | close () |
This function hands over control to the child class by calling closeNative(long) for cleaning up the native resources and memory. More... | |
Static Public Member Functions | |
static EnclaveManager | getInstance () |
Returns the EnclaveManager singleton object. More... | |
Protected Member Functions | |
void | closeNative (long pointer) |
Protected Member Functions inherited from com.asylo.client.AutoCloseablePointer | |
AutoCloseablePointer (final long pointer) | |
final long | getPointer () |
abstract void | closeNative (final long pointer) |
Child classes should free up native resources and memory when this function is invoked. More... | |
A manager class responsible for creating and managing enclave instances.
EnclaveManager is a singleton class that tracks the status of enclaves within a process. Users can access singleton instance by calling the static getInstance() method.
|
inline |
|
inlineprotected |
|
inline |
Destroys an enclave client.
It first passes the EnclaveFinal to enclave's EnterAndExecute method and then it frees up the native memory of the client. It should not be called more than once for a client.
enclaveClient | Client which needs to be destroyed. |
enclaveFinal | Final input to the client. |
EnclaveException | if there is any problem in destruction of the enclave. |
IllegalStateException | if enclaveClient is already destroyed. |
|
inline |
Returns the EnclaveClient which is loaded previously by calling loadEnclave(EnclaveLoadConfig).
enclaveName | Name of the enclave registered with the enclave manager. |
EnclaveException | if it cannot return the client. |
|
inlinestatic |
Returns the EnclaveManager singleton object.
EnclaveException | if EnclaveManager cannot be created. |
|
inline |
Loads a new enclave utilizing the passed enclave loader configuration settings.
The loaded enclave is bound to the value of the field name
in EnclaveLoadConfig. It is an error to specify a name which is already bound to an enclave.
config | Loading configuration of the enclave. |
EnclaveException | if manager is not able to load enclave properly. |