Builder

class Builder

Builder used to construct the SudoEmailClient.

Types

Link copied to clipboard
class ConfigurationException(message: String, cause: Throwable? = null) : RuntimeException

A configuration item that is needed is missing

Functions

Link copied to clipboard

Construct the SudoEmailClient. Will throw a NullPointerException if the context and sudoUserClient has not been provided.

Link copied to clipboard

Provide the application context (required input).

Link copied to clipboard

Provide the database name to use for exportable key store database.

Link copied to clipboard

Provide a GraphQLClient for the SudoEmailClient to use (optional input). If this is not supplied, an GraphQLClient will be constructed and used.

Link copied to clipboard
fun setKeyManager(keyManager: KeyManagerInterface): SudoEmailClient.Builder

Provide the implementation of the KeyManagerInterface used for key management and cryptographic operations (optional input). If a value is not supplied a default implementation will be used.

Link copied to clipboard
fun setLogger(logger: Logger): SudoEmailClient.Builder

Provide the implementation of the Logger used for logging errors (optional input). If a value is not supplied a default implementation will be used.

Link copied to clipboard

Provide the namespace to use for internal data and cryptographic keys. This should be unique per client per app to avoid name conflicts between multiple clients. If a value is not supplied a default value will be used.

Link copied to clipboard

Provide the implementation of the SudoUserClient used to perform sign in and ownership operations (required input).