Configuration constructor Null safety

Configuration(
  1. {required String baseUrl,
  2. String? registrationRequestPath,
  3. String? registrationResponsePath,
  4. String? authenticationRequestPath,
  5. String? authenticationResponsePath,
  6. String? deregistrationRequestPath,
  7. String? dispatchTargetResourcePath,
  8. Duration? networkTimeout,
  9. Duration? authenticationRetryInterval,
  10. int? authenticationMaxRetries,
  11. Duration? userInteractionTimeout,
  12. String? facetId}
)

Default constructor for Configuration.

Params:

  • baseUrl: the default base URL for the HTTP endpoints the SDK must interact with.
  • registrationRequestPath: the registration request URL path used to send the FIDO UAF registration GetUafRequest. If not provided, /uaf/1.1/request/registration/ will be used.
  • registrationResponsePath: the registration response URL path used to send the final FIDO UAF registration response. If not provided, /uaf/1.1/registration/ will be used.
  • authenticationRequestPath: the authentication request URL path used to send the FIDO UAF authentication GetUafRequest. If not provided, /uaf/1.1/request/authentication/ will be used.
  • authenticationResponsePath: the authentication response URL path used to send the final FIDO UAF authentication response. If not provided, /uaf/1.1/authentication/ will be used.
  • deregistrationRequestPath: the deregistration request URL path used to obtain the FIDO UAF deregistration request. If not provided, /uaf/1.1/request/deregistration/ will be used.
  • dispatchTargetResourcePath: the dispatch target resource URL path. If not provided, /token/dispatch/targets/ will be used.
  • networkTimeout: time interval for network calls in seconds. If not provided, 60 seconds will be used.
  • authenticationRetryInterval: time interval for authentication in seconds. If not provided, 1 second will be used.
  • authenticationMaxRetries: the maximum number of retries for authentication. If not provided, 3 will be used.
  • userInteractionTimeout: the user interaction timeout in seconds. If not provided, 4 minutes (240 seconds) will be used.
  • facetId: Facet ID of the application.

Implementation

factory Configuration({
  required String baseUrl,
  String? registrationRequestPath,
  String? registrationResponsePath,
  String? authenticationRequestPath,
  String? authenticationResponsePath,
  String? deregistrationRequestPath,
  String? dispatchTargetResourcePath,
  Duration? networkTimeout,
  Duration? authenticationRetryInterval,
  int? authenticationMaxRetries,
  Duration? userInteractionTimeout,
  String? facetId,
}) {
  return ConfigurationImpl(
    hostname: null,
    baseUrl: baseUrl,
    registrationRequestPath: registrationRequestPath,
    registrationResponsePath: registrationResponsePath,
    authenticationRequestPath: authenticationRequestPath,
    authenticationResponsePath: authenticationResponsePath,
    deregistrationRequestPath: deregistrationRequestPath,
    dispatchTargetResourcePath: dispatchTargetResourcePath,
    networkTimeout: networkTimeout,
    authenticationMaxRetries: authenticationMaxRetries,
    authenticationRetryInterval: authenticationRetryInterval,
    userInteractionTimeout: userInteractionTimeout,
    facetId: facetId,
  );
}