Default Sudo User Client
constructor(context: Context, namespace: String = "ids", logger: Logger = DefaultLogger.instance, config: JSONObject? = null, keyManager: KeyManagerInterface? = null, identityProvider: IdentityProvider? = null, apiClient: GraphQLClient? = null, credentialsProvider: CognitoCredentialsProvider? = null, authUI: AuthUI? = null, idGenerator: IdGenerator = IdGenerateImpl(), databaseName: String = AndroidSQLiteStore.DEFAULT_DATABASE_NAME)
Parameters
config
configuration parameters.
context
Android app context.
namespace
namespace to use for internal data and cryptographic keys. This should be unique per client per app to avoid name conflicts between multiple clients.
database Name
database name to use for the exportable key store database.
logger
logger to use for logging messages.
key Manager
custom KeyManagerInterface implementation. Mainly used for unit testing (optional)
identity Provider
custom identity provider. Mainly used for unit testing (optional).
api Client
custom API client. Mainly used for unit testing (optional).
credentials Provider
custom credentials provider. Mainly used for unit testing (optional).
auth UI
custom auth UI. Mainly used for unit testing (optional).
id Generator
custom ID generator. Mainly used for unit testing (optional).