Asylo
Public Member Functions | Protected Member Functions | List of all members
com.asylo.client.EnclaveClient Class Reference

EnclaveClient class which provides methods for invoking enclave's entry points. More...

Inheritance diagram for com.asylo.client.EnclaveClient:
Inheritance graph
[legend]
Collaboration diagram for com.asylo.client.EnclaveClient:
Collaboration graph
[legend]

Public Member Functions

EnclaveOutput enterAndRun (EnclaveInput enclaveInput)
 Enters the enclave and invokes its execution entry point. More...
 
EnclaveOutput enterAndRun (EnclaveInput enclaveInput, ExtensionRegistry registry)
 Enter the enclave and invokes its execution entry point. 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...
 

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...
 

Detailed Description

EnclaveClient class which provides methods for invoking enclave's entry points.

Member Function Documentation

◆ closeNative()

void com.asylo.client.EnclaveClient.closeNative ( long  pointer)
inlineprotected

◆ enterAndRun() [1/2]

EnclaveOutput com.asylo.client.EnclaveClient.enterAndRun ( EnclaveInput  enclaveInput)
inline

Enters the enclave and invokes its execution entry point.

This method uses a default protobuf ExtensionRegistry. Consider using enterAndRun(EnclaveInput, ExtensionRegistry) if you are expecting some result back otherwise you will have to serialize and deserialize again to get your extension from protobuf.

Parameters
enclaveInputInput to the enclave which will be used in invoking entry point method.
Returns
Output from the enclave.
Exceptions
EnclaveExceptionif any exception occurs in native execution.

◆ enterAndRun() [2/2]

EnclaveOutput com.asylo.client.EnclaveClient.enterAndRun ( EnclaveInput  enclaveInput,
ExtensionRegistry  registry 
)
inline

Enter the enclave and invokes its execution entry point.

Parameters
enclaveInputInput to the enclave which will be used in invoking entry point method.
registryA user protobuf registry which will be used generate EnclaveOutput.
Returns
Output from the enclave.
Exceptions
EnclaveExceptionif any exception occurs in native execution.

The documentation for this class was generated from the following file: