Interface OAuthClientMetadataAddressResolver
Trusted bounded address resolution for opt-in client metadata retrieval.
Implementations return every numeric answer for the checked original hostname and honor the
shrinking remaining budget on the calling thread. They must be safe for concurrent callers.
Revetsec checks all answers and pins an approved numeric peer; this callback does not fetch
metadata or authorize clients. No implicit system resolver or owned executor is supplied.
Construction of a metadata policy never invokes this callback.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
-
Method Details
-
resolve
@NonNull List<@NonNull InetAddress> resolve(@NonNull String hostname, @NonNull Duration remainingBudget) Resolves every address under the supplied remaining budget, without reverse lookup.- Parameters:
hostname- the checked original hostnameremainingBudget- the positive remaining operation budget- Returns:
- all numeric answers; an empty list cannot establish a destination
- Since:
- 1.0.0
-