hostnameOf: (
value: unknown,
) => { hostname?: string; ok: boolean; status?: number; why?: string } = PepRegistry.hostnameOf
Type Declaration
-
- (
value: unknown,
): { hostname?: string; ok: boolean; status?: number; why?: string }
-
Returns { hostname?: string; ok: boolean; status?: number; why?: string }
{ ok: true, hostname } (lower-cased, '' when not reported),
or { ok: false, why, status: 400 } carrying STS-XACML-0261
Validates the hostname a PEP reports on its registration or heartbeat.