WebDidConfig
Configuration for did:web method implementation.
Follows W3C did:web specification for HTTP/HTTPS-based DID resolution.
Example Usage:
val config = WebDidConfig.builder()
.requireHttps(true)
.documentPath("/.well-known/did.json")
.build()Constructors
Types
Properties
Additional configuration properties.
Path to DID document (default: "/.well-known/did.json"). Per W3C spec, documents should be hosted at /.well-known/did.json
Whether resolution follows HTTP redirects (default: false). When enabled, WebDidMethod follows at most WebDidMethod.MAX_REDIRECTS hops manually, re-checking HTTPS and the SSRF guard on every hop; the HTTP client's own redirect handling is never used.
Whether HTTPS is required for document hosting (default: true). Per W3C spec, did:web requires HTTPS.
Upper bound, in seconds, on each resolution request (applied by WebDidMethod as an OkHttp call timeout; the SPI provider also uses it for connect/read/write timeouts when it builds the client). Default: 30. 0 or less leaves the client's own timeouts alone.
Functions
Prints only the keys of additionalProperties: its values may carry credentials.