DefaultSudoProfilesClient

constructor(context: Context, sudoUserClient: SudoUserClient, blobContainerURI: Uri, logger: Logger = DefaultLogger.instance, config: JSONObject? = null, maxSudos: Int = 10, graphQLClient: GraphQLClient? = null, s3Client: S3Client? = null, idGenerator: IdGenerator = DefaultIdGenerator(), cryptoProvider: CryptoProvider? = null, namespace: String = DEFAULT_KEY_NAMESPACE, databaseName: String = AndroidSQLiteStore.DEFAULT_DATABASE_NAME)

Parameters

context

Android app context.

sudoUserClient

SudoUserClient instance required to issue authentication tokens and perform cryptographic operations.

blobContainerURI

container URI to which large binary objects will be stored.

logger

logger used for logging messages.

config

configuration parameters.

maxSudos

maximum number of Sudos to cap the queries to. Defaults to 10.

graphQLClient

optional GraphQL client to use. Mainly used for unit testing.

s3Client

optional S3 client to use. Mainly used for unit testing.

idGenerator

optional GUID generator to use. Mainly used for unit testing.

namespace

namespace to use for internal data and cryptographic keys. This should be unique

databaseName

database name to use for the exportable key store database.