Package io.jans.fido2.service
Class RpPolicyService
java.lang.Object
io.jans.fido2.service.RpPolicyService
Resolves an assurance decision for one relying party, falling back to the global configuration.
Before per-RP policy existed every decision came from Fido2Configuration, so the fallback is
what keeps an unconfigured deployment behaving exactly as it did: an RP with no matching entry, or a
matching entry whose policy leaves the field unset, resolves to the global value.
The origin is matched the same way AttestationService.createRpDomain matches it, so the policy
that applies and the RP that a ceremony is attributed to can never disagree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveAttestationMode(String origin) The attestation mode in force for a ceremony on this origin.
-
Constructor Details
-
RpPolicyService
public RpPolicyService()
-
-
Method Details
-
resolveAttestationMode
The attestation mode in force for a ceremony on this origin.- Parameters:
origin- the resolved ceremony origin, as stored on the registration entry; may be null- Returns:
- the per-RP mode when set, otherwise the global mode
-