Companion

object Companion

Properties

Link copied to clipboard

Default document path per W3C spec.

Link copied to clipboard
const val MAX_REDIRECTS: Int = 5

Redirect hops followed when WebDidConfig.followRedirects is enabled. Each hop is re-checked against the HTTPS requirement and the SSRF guard.

Link copied to clipboard

WebDidConfig.additionalProperties key: how many seconds a cached document may be served when the endpoint is unreachable. Absent or 0 (the default) disables the offline fallback, so an unreachable endpoint fails resolution.

Functions

Link copied to clipboard
fun create(kms: KeyManagementService, httpClient: OkHttpClient = OkHttpClient()): WebDidMethod

Creates a WebDidMethod with default configuration.