pub enum Authorities {
Unstated,
Unchecked,
Served(BTreeSet<String>),
}Expand description
The @authority values a verifier serves, VerifyOptions::authorities (this.i @524c8qgv).
verify_request has no default for it, as it has none for max_age: the caller decides, and
leaving it at Authorities::Unstated is InvalidArgument. Entries are compared exactly with
@authority as fiki derives it: a lowercase host, and a port unless it is the default port of
an absolute URL’s scheme.
Variants§
Unstated
No decision was made, which verify_request refuses as InvalidArgument.
Unchecked
The explicit decision not to check which host a request was signed for.
Served(BTreeSet<String>)
The hosts this verifier serves. A covered @authority outside them is SignatureMismatch,
and stating them makes @authority required even under Minimum::Off (@605z9tnw). An
empty set serves no host at all, so it is InvalidArgument.