Package io.jans.fido2.service.trust
Class TrustStatusService
java.lang.Object
io.jans.fido2.service.trust.TrustStatusService
Assembles the read-only attestation and MDS status reported by the trust endpoints.
This service only reads state the attestation and metadata services already hold. It never changes attestation behaviour, never triggers a metadata download, and never touches the document store — a diagnostics endpoint must not cause outbound traffic or mutate state.
- Author:
- Janssen Project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe attestation policy the server is actually applying.The state of the metadata the server validates attestation against.
-
Constructor Details
-
TrustStatusService
public TrustStatusService()
-
-
Method Details
-
getAttestationTrustConfig
The attestation policy the server is actually applying. -
getMdsHealth
The state of the metadata the server validates attestation against.Every value is read from memory. In particular the blob's
nextUpdatecomes fromTocService.getLoadedTocNextUpdate()rather thangetNextUpdateDate(), which reads the document store and throws on failure — unusable from a health endpoint.
-