use of uk.gov.ida.hub.config.dto.CertificateHealthCheckDto in project verify-hub by alphagov.
the class CertificatesResource method getCertHealthCheckDtos.
private List<CertificateHealthCheckDto> getCertHealthCheckDtos() throws CertificateException {
List<CertificateHealthCheckDto> certs = new LinkedList<>();
// IDP certs are now in the federation metadata and checked for expiry and OCSP status in separate sensu checks
for (TransactionConfigEntityData transaction : transactionDataSource.getAllData()) {
certs.add(createCertificateHealthCheckDto(transaction.getEntityId(), transaction.getEncryptionCertificate(), configuration.getCertificateWarningPeriod()));
addCertificateHealthCheckDtos(certs, transaction.getEntityId(), transaction.getSignatureVerificationCertificates());
}
for (MatchingServiceConfigEntityData ms : matchingServiceDataSource.getAllData()) {
certs.add(createCertificateHealthCheckDto(ms.getEntityId(), ms.getEncryptionCertificate(), configuration.getCertificateWarningPeriod()));
addCertificateHealthCheckDtos(certs, ms.getEntityId(), ms.getSignatureVerificationCertificates());
}
return certs;
}
Aggregations