Package ch.nevis.mobile.sdk.api
Interface Configuration.Builder
- Enclosing interface:
- Configuration
public static interface Configuration.Builder
A builder for
Configuration
.-
Method Summary
Modifier and TypeMethodDescriptionappAttestation
(AppAttestation appAttestation) Sets the application attestation configuration.authenticationRequestPath
(String authenticationRequestPath) Sets the authentication request path URL.authenticationResponsePath
(String authenticationResponsePath) Sets the authentication response path URL.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.networkTimeoutInSeconds
(long networkTimeoutInSeconds) Sets the time interval for network timeouts in seconds.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
-
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
@NonNull Configuration.Builder authenticationResponsePath(@NonNull 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
@NonNull Configuration.Builder dispatchTargetResourcePath(@NonNull 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
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
-
userInteractionTimeoutInSeconds
@NonNull 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
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
-
appAttestation
Sets the application attestation configuration.- Parameters:
appAttestation
- the application attestation configuration.- Returns:
- a builder
-
build
Creates aConfiguration
.- Returns:
- a
Configuration
-