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 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 setGraphQLClient(graphQLClient: GraphQLClient): <Error class: unknown class>

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

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

Set the notification handler which provides the implementation for notifications received from the virtual cards service

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