Package-level declarations
Types
Small, dependency-free URL policy helpers shared by the protocol plugins.
SSRF guard for outbound HTTP requests whose target host is derived from untrusted input — e.g. a did:web identifier (did:web:example.com → https://example.com/...) or an OID4VP/OID4VCI request_uri / credential_offer_uri.
An OkHttp Dns that refuses to resolve any host mapping to an internal address (loopback, private, link-local, cloud-metadata, IPv6-ULA — see PrivateNetworkGuard).
Transport-security policy for operator-configured endpoints: blockchain RPC nodes, resolver services, and anything else whose URL comes from deployment configuration rather than from an untrusted document.
Functions
Reads the response body as UTF-8 text, failing with IOException if it exceeds maxBytes rather than buffering an unbounded body. Returns null when the response has no body. The response is always closed.
A default OkHttpClient hardened for fetching attacker-influenced URLs: it blocks internal hosts via SsrfBlockingDns (names) and a connect-time PrivateNetworkGuard check (IP literals, and every redirect hop), ignores system proxies, and bounds every call with timeouts (defeating slow-loris / hung reads). Callers that need different behaviour can inject their own client.