Builder

Builder


class Builder(projectId: String, clientId: String, redirectUri: String)

Parameters

projectId required to link the SDK with the project on the MIRACLTrust platform.
clientId required to link the SDK with the client on the MIRACLTrust platform.
redirectUri required to authorize the SDK with the MIRACLTrust platform.

Constructors

Builder
fun Builder(projectId: String, clientId: String, redirectUri: String)

Functions

Name Summary
build
fun build(): Configuration
connectTimeout
fun connectTimeout(connectTimeout: Int): Configuration.Builder
Sets HTTP requests connect timeout in seconds to be used by the SDK default HttpRequestExecutor.
deviceName
fun deviceName(deviceName: String): Configuration.Builder
Sets value of device name.
httpRequestExecutor
fun httpRequestExecutor(httpRequestExecutor: HttpRequestExecutor): Configuration.Builder
Provides implementation of the HttpRequestExecutor interface to be used by the SDK.
logger
fun logger(logger: Logger): Configuration.Builder
Provides implementation of the Logger interface to be used by the SDK.
loggingLevel
fun loggingLevel(loggingLevel: Logger.LoggingLevel): Configuration.Builder
Provides specific Logger.LoggingLevel to be used by the SDK default logger.
platformUrl
fun platformUrl(platformUrl: String): Configuration.Builder
Sets custom MIRACL platform URL.
readTimeout
fun readTimeout(readTimeout: Int): Configuration.Builder
Sets HTTP requests read timeout in seconds to be used by the SDK default HttpRequestExecutor.
userStorage
fun userStorage(userStorage: UserStorage): Configuration.Builder
Provides implementation of the UserStorage interface to be used by the SDK.