Interface Configuration.Builder

Enclosing interface:
Configuration

public static interface Configuration.Builder
A builder for Configuration.
  • Method Details

    • packageInfo

      Configuration.Builder packageInfo(android.content.pm.PackageInfo packageInfo)
      Sets the package information.

      Providing the package information is required.

      Parameters:
      packageInfo - the package information.
      Returns:
      a builder
    • baseUrl

      Configuration.Builder baseUrl(URI baseUrl)
      Sets the base URL.

      Providing the base URL is required.

      Parameters:
      baseUrl - the base URL
      Returns:
      a builder
    • registrationRequestPath

      Configuration.Builder registrationRequestPath(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(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(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(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(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(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 String facetId)
      Sets the facet ID.
      Parameters:
      facetId - the facet ID
      Returns:
      a builder
    • build

      Configuration build()
      Creates a Configuration.
      Returns:
      a Configuration