Interface Configuration.Builder
- Enclosing interface:
- Configuration
Configuration
.-
Method Summary
Modifier and TypeMethodDescriptionauthenticationMaxRetries
(int authenticationMaxRetries) Sets the maximum number of retries for authentication.authenticationRequestPath
(String authenticationRequestPath) Sets the authentication request path URL.authenticationResponsePath
(String authenticationResponsePath) Sets the authentication response path URL.authenticationRetryIntervalInSeconds
(long authenticationTimeIntervalInSeconds) Sets the time interval for authentication in seconds.Sets the base URL.build()
Creates aConfiguration
.deregistrationRequestPath
(String deregistrationRequestPath) Sets the deregistration path URL.deviceResourcePath
(String deviceResourcePath) Sets the device resource path URL.dispatchTargetResourcePath
(String dispatchTargetResourcePath) Sets the dispatch target resource path URL.Sets the facet ID.networkTimeoutInSeconds
(long networkTimeoutInSeconds) Sets the time interval for network timeouts in seconds.packageInfo
(android.content.pm.PackageInfo packageInfo) Sets the package information.registrationRequestPath
(String registrationRequestPath) Sets the registration request URL path.registrationResponsePath
(String registrationResponsePath) Sets the registration response path URL.userInteractionTimeoutInSeconds
(long userInteractionTimeoutInSeconds) Sets the maximum time that the SDK will wait during user interaction to receive the user input.
-
Method Details
-
packageInfo
Sets the package information.Providing the package information is required.
The
PackageInfo
must contain the signature information of the application. To obtain it from aContext
object, the following code can be used:PackageInfo packageInfo = context.getPackageManager().getPackageInfo( context.getPackageName(), PackageManager.GET_SIGNING_CERTIFICATES);
- Parameters:
packageInfo
- the package information.- Returns:
- a builder
-
baseUrl
Sets the base URL.Providing the base URL is required.
- Parameters:
baseUrl
- the base URL- Returns:
- a builder
-
registrationRequestPath
Sets the registration request URL path.If not provided,
/uaf/1.1/request/registration/
will be used.- Parameters:
registrationRequestPath
- the registration request path path URL.- Returns:
- a builder
-
registrationResponsePath
Sets the registration response path URL.If not provided,
/uaf/1.1/registration/
will be used.- Parameters:
registrationResponsePath
- the registration response path URL.- Returns:
- a builder
-
authenticationRequestPath
Sets the authentication request path URL.If not provided,
/uaf/1.1/request/authentication/
will be used.- Parameters:
authenticationRequestPath
- the authentication request path URL.- Returns:
- a builder
-
authenticationResponsePath
Sets the authentication response path URL.If not provided,
/uaf/1.1/authentication/
will be used.- Parameters:
authenticationResponsePath
- the authentication response path URL.- Returns:
- a builder
-
dispatchTargetResourcePath
Sets the dispatch target resource path URL.If not provided,
/token/dispatch/targets/
will be used.- Parameters:
dispatchTargetResourcePath
- the dispatch target resource path URL.- Returns:
- a builder
-
networkTimeoutInSeconds
Sets the time interval for network timeouts in seconds.If not provided, 60 seconds will be used.
- Parameters:
networkTimeoutInSeconds
- ) the network timeout- Returns:
- a builder
-
authenticationRetryIntervalInSeconds
Configuration.Builder authenticationRetryIntervalInSeconds(long authenticationTimeIntervalInSeconds) Sets the time interval for authentication in seconds.If not provided, 1 second will be used.
- Parameters:
authenticationTimeIntervalInSeconds
- the time interval for authentication.- Returns:
- a builder
-
authenticationMaxRetries
Sets the maximum number of retries for authentication.If not provided, 3 will be used.
- Parameters:
authenticationMaxRetries
- the maximum number of retries for authentication.- Returns:
- a builder
-
userInteractionTimeoutInSeconds
Sets the maximum time that the SDK will wait during user interaction to receive the user input.If not provided, 4 minutes (240 seconds) will be used.
- Parameters:
userInteractionTimeoutInSeconds
- the user interaction timeout in seconds- Returns:
- a builder
-
deregistrationRequestPath
Sets the deregistration path URL.If not provided,
/uaf/1.1/request/deregistration/
will be used.- Parameters:
deregistrationRequestPath
- the deregistration path URL.- Returns:
- a builder
-
deviceResourcePath
Sets the device resource path URL.If not provided,
/devices/
will be used.- Parameters:
deviceResourcePath
- the device resource path URL.- Returns:
- a builder
-
facetId
Sets the facet ID.- Parameters:
facetId
- the facet ID- Returns:
- a builder
-
build
Configuration build()Creates aConfiguration
.- Returns:
- a
Configuration
-