Package com.pd4ml.pdf.sign.ltv
Class RevocationFetcher
- java.lang.Object
-
- com.pd4ml.pdf.sign.ltv.RevocationFetcher
-
public final class RevocationFetcher extends java.lang.ObjectFetches OCSP responses and CRLs for a certificate chain, over plain HTTP, using only the certificates' own Authority Information Access / CRL Distribution Points extensions to find where to ask -- no extra configuration needed for the common case. This is the built-in revocation source forcom.pd4ml.pdf.sign.ltv.LtvUpdater; a caller with its own revocation infrastructure (a cache, a corporate OCSP proxy, pre-fetched responses) can bypass this class entirely and handLtvUpdater.embedValidationInformation(byte[], byte[], java.security.cert.Certificate[], com.pd4ml.pdf.sign.ltv.RevocationFetcher.Result)aRevocationFetcher.Resultbuilt by hand instead.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRevocationFetcher.ResultEverything fetched for onefetch(java.security.cert.Certificate[], com.pd4ml.pdf.sign.ltv.LtvOptions)call, ready to embed viaLtvUpdater.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RevocationFetcher.Resultfetch(java.security.cert.Certificate[] chain, LtvOptions options)Fetches revocation evidence for every certificate inchain(index 0 = the signing certificate, each subsequent entry its issuer), peroptions.
-
-
-
Method Detail
-
fetch
public static RevocationFetcher.Result fetch(java.security.cert.Certificate[] chain, LtvOptions options)
Fetches revocation evidence for every certificate inchain(index 0 = the signing certificate, each subsequent entry its issuer), peroptions. Never throws: any failure for an individual certificate/source is recorded inRevocationFetcher.Result.getWarnings()and fetching continues with the rest, so one unreachable CA doesn't block the whole operation.
-
-