WebDavAuthenticationConfig class final

Credentials and authentication settings for a WebDAV directory.

Use with WebDavStdClient.authenticated on native platforms to manage Authorization instead of SDK site credentials and authentication callbacks. Supports Basic and MD5 Digest; proxy authentication remains SDK-managed.

scope limits requests and credentials to one origin and directory subtree. Basic requires HTTPS unless allowInsecureBasic is enabled. See mode for discovery and preemptive Basic options.

Constructors

WebDavAuthenticationConfig({required Uri scope, Uri? probeUri, required String username, required String password, WebDavAuthenticationMode mode = WebDavAuthenticationMode.auto, bool allowInsecureBasic = false, Duration discoveryTimeout = const Duration(seconds: 30)})
Validates and normalizes the credential scope and discovery settings.

Properties

allowInsecureBasic → bool
Explicitly permits Basic over HTTP instead of requiring HTTPS.
final
discoveryTimeout → Duration
Deadline for all read-only discovery requests and their response bodies.
final
hashCode → int
The hash code for this object.
no setterinherited
mode → WebDavAuthenticationMode
Whether to discover authentication or send Basic preemptively.
final
password → String
Login secret, omitted from diagnostic string representations.
final
probeUri → Uri
Initial read-only discovery URI within scope, defaulting to scope.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → Uri
Absolute HTTP(S) directory URI limiting where credentials may be sent.
final
username → String
Login name used by the selected authentication scheme.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited