Package ch.nevis.mobile.sdk.api
Interface Configuration.Builder
-
- Enclosing interface:
- Configuration
public static interface Configuration.Builder
A builder forConfiguration
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Configuration.Builder
authenticationMaxRetries(int authenticationMaxRetries)
Sets the maximum number of retries for authentication.Configuration.Builder
authenticationRequestPath(java.lang.String authenticationRequestPath)
Sets the authentication request path URL.Configuration.Builder
authenticationResponsePath(java.lang.String authenticationResponsePath)
Sets the authentication response path URL.Configuration.Builder
authenticationRetryIntervalInSeconds(long authenticationTimeIntervalInSeconds)
Sets the time interval for authentication in seconds.Configuration.Builder
baseUrl(java.net.URI baseUrl)
Sets the base URLConfiguration
build()
Creates aConfiguration
.Configuration.Builder
deregistrationRequestPath(java.lang.String deregistrationRequestPath)
Sets the deregistration path URL.Configuration.Builder
dispatchTargetResourcePath(java.lang.String dispatchTargetResourcePath)
Sets the dispatch target resource path URL.Configuration.Builder
facetId(java.lang.String facetId)
Sets the facet ID.Configuration.Builder
networkTimeoutInSeconds(long networkTimeoutInSeconds)
Sets the time interval for network timeouts in seconds.Configuration.Builder
packageInfo(android.content.pm.PackageInfo packageInfo)
Sets the package information.Configuration.Builder
registrationRequestPath(java.lang.String registrationRequestPath)
Sets the registration request URL path.Configuration.Builder
registrationResponsePath(java.lang.String registrationResponsePath)
Sets the registration response path URL.Configuration.Builder
userInteractionTimeoutInSeconds(long userInteractionTimeoutInSeconds)
Sets the maximum time that the SDK will wait during user interaction to receive the user input.
-
-
-
Method Detail
-
packageInfo
Configuration.Builder packageInfo(android.content.pm.PackageInfo packageInfo)
Sets the package information.- Parameters:
packageInfo
- the package information.- Returns:
- a builder
-
baseUrl
Configuration.Builder baseUrl(java.net.URI baseUrl)
Sets the base URL- Parameters:
baseUrl
- the base URL- Returns:
- a builder
-
registrationRequestPath
Configuration.Builder registrationRequestPath(java.lang.String 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
Configuration.Builder registrationResponsePath(java.lang.String 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
Configuration.Builder authenticationRequestPath(java.lang.String 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
Configuration.Builder authenticationResponsePath(java.lang.String 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
Configuration.Builder dispatchTargetResourcePath(java.lang.String 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
Configuration.Builder networkTimeoutInSeconds(long 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
Configuration.Builder authenticationMaxRetries(int 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
Configuration.Builder userInteractionTimeoutInSeconds(long 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
Configuration.Builder deregistrationRequestPath(java.lang.String 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
-
facetId
Configuration.Builder facetId(@Nullable java.lang.String facetId)
Sets the facet ID.- Parameters:
facetId
- the facet ID- Returns:
- a builder
-
build
Configuration build()
Creates aConfiguration
.- Returns:
- a
Configuration
-
-