Class FederationUploadKeyService


  • @Component
    public class FederationUploadKeyService
    extends Object
    • Method Detail

      • getPendingUploadKeys

        public List<FederationUploadKey> getPendingUploadKeys​(ExpirationPolicy policy)
        Returns all valid persisted diagnosis keys which are ready to be uploaded to the external Federation Gateway service. Readiness of keys means:

      • Consent is given by the user (this should always be the case for keys in this table, but a safety check is performed anyway
      • Key is expired conforming to the given policy