Builder

class Builder(context: Context)

Builder used to construct SudoUserClient.

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard

Constructs and returns an SudoUserClient.

Link copied to clipboard

Provide an GraphQLClient for the SudoUserClient. If this is not supplied, a default GraphQLClient will be used. This is mainly used for unit testing.

Link copied to clipboard

Provide a custom auth UI. This is mainly used for unit testing (optional).

Link copied to clipboard

Provide the configuration parameters.

Link copied to clipboard
fun setCredentialsProvider(credentialsProvider: CognitoCredentialsProvider): SudoUserClient.Builder

Provide a custom credentials provider. This is mainly used for unit testing (optional). If a value is not provided, a default implementation will be used.

Link copied to clipboard

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

Link copied to clipboard

Provide a custom identity provider. This is mainly used for unit testing (optional).

Link copied to clipboard

Provide a custom ID generator. This is mainly used for unit testing. If a value is not provided, a default implementation will be used.

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

Provide custom KeyManagerInterface implementation. This is mainly used for unit testing (optional).

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

Provide the implementation of the Logger used for logging. 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.