Configuration class Null safety
The Mobile Authentication Client configuration.
The Configuration is used to build and initialize the SDK.
Examples:
final defaultConfig = Configuration(baseUrl: "https://test.host.com");
final configWithCustomResponsePaths = Configuration(
baseUrl: "https://test.host.com",
registrationResponsePath: "/custom/uaf/1.1/registration/",
authenticationResponsePath: "/custom/uaf/1.1/authentication/",
);
final authCloudConfig = Configuration.authCloud(hostname: "test.host.com");
Constructors
- 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})
-
Default constructor for Configuration.
factory
- Configuration.authCloud({required dynamic hostname, Duration? networkTimeout, Duration? authenticationRetryInterval, int? authenticationMaxRetries, Duration? userInteractionTimeout, String? facetId})
-
This is a convenience version of the default initializer of this Configuration,
that can only be used when your application interacts with the Nevis Auth Cloud.
factory
-
Configuration.fromJson(Map<
String, dynamic> json) -
Alternate constructor that creates a Configuration from a json.
factory
Properties
- authenticationMaxRetries → int
-
The maximum number of retries for authentication.
read-only
- authenticationRequestPath → String
-
The authentication request URL path used to send the FIDO UAF
authentication GetUafRequest.
read-only
- authenticationResponsePath → String
-
The authentication response URL path used to send the final FIDO UAF
authentication response.
read-only
- authenticationRetryInterval → Duration
-
Time interval for authentication in seconds.
read-only
- baseUrl → String
-
The default base URL for the HTTP endpoints the SDK must interact with.
read-only
- deregistrationRequestPath → String
-
The deregistration request URL path used to obtain the FIDO UAF
deregistration request.
read-only
- dispatchTargetResourcePath → String
-
The dispatch target resource URL path.
read-only
- facetId → String?
-
Specifies the facet ID
of the application.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- networkTimeout → Duration
-
Time interval for network calls in seconds.
read-only
- registrationRequestPath → String
-
The registration request URL path used to send the FIDO UAF registration
GetUafRequest.
read-only
- registrationResponsePath → String
-
The registration response URL path used to send the final FIDO UAF
registration response.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- userInteractionTimeout → Duration
-
The user interaction timeout in seconds.
read-only
Methods
-
fromJson(
Map< String, dynamic> json) → dynamic -
Returns a value of the type you specify, deserialized from a JSON object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a JSON-encoded representation of the value you supply.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited