Builder

class Builder

Builder used to construct the SudoVirtualCardsClient.

Functions

Link copied to clipboard

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

Link copied to clipboard
fun setAppSyncClient(appSyncClient: AWSAppSyncClient): SudoVirtualCardsClient.Builder

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

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
fun setKeyManager(keyManager: KeyManagerInterface): SudoVirtualCardsClient.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

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