Class OcspChecker
java.lang.Object
org.codice.ddf.security.ocsp.checker.OcspChecker
- All Implemented Interfaces:
org.codice.ddf.security.OcspService
-
Constructor Summary
ConstructorsConstructorDescriptionOcspChecker(org.codice.ddf.cxf.client.ClientBuilderFactory factory, org.osgi.service.event.EventAdmin eventAdmin) -
Method Summary
Modifier and TypeMethodDescriptionbooleanpassesOcspCheck(X509Certificate[] certs) Checks whether the given are revoked or not against the configured OCSP server urls + the optionally given OCSP server url in the given .voidsetOcspEnabled(boolean ocspEnabled) voidsetOcspServerUrls(List<String> ocspServerUrls) voidsetSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)
-
Constructor Details
-
OcspChecker
public OcspChecker(org.codice.ddf.cxf.client.ClientBuilderFactory factory, org.osgi.service.event.EventAdmin eventAdmin)
-
-
Method Details
-
passesOcspCheck
Checks whether the given are revoked or not against the configured OCSP server urls + the optionally given OCSP server url in the given .- Specified by:
passesOcspCheckin interfaceorg.codice.ddf.security.OcspService- Parameters:
certs- - an array of certificates to verify.- Returns:
- true if the certificates are good or if they could not be properly checked against the OCSP server. Returns false if any of them are revoked.
-
setOcspEnabled
public void setOcspEnabled(boolean ocspEnabled) -
setOcspServerUrls
-
setSecurityLogger
public void setSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)
-