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
fun setApiClient(apiClient: ApiClient): <Error class: unknown class>

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

Link copied to clipboard
fun setContext(context: Context): <Error class: unknown class>

Provide the application context (required input).

Link copied to clipboard
fun setDatabaseName(databaseName: String): <Error class: unknown class>

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

Link copied to clipboard
fun setKeyManager(keyManager: KeyManagerInterface): <Error class: unknown class>

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): <Error class: unknown class>

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
fun setNamespace(namespace: String): <Error class: unknown class>

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
fun setNotificationHandler(notificationHandler: SudoEmailNotificationHandler): <Error class: unknown class>
Link copied to clipboard
fun setSudoUserClient(sudoUserClient: SudoUserClient): <Error class: unknown class>

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