Class OcspLookupRequest


  • public final class OcspLookupRequest
    extends Object
    • Field Detail

      • url

        public final URI url
      • certificateSerialNumber

        public final BigInteger certificateSerialNumber
    • Method Detail

      • tryCreate

        public static Optional<OcspLookupRequest> tryCreate​(X509Certificate certificate,
                                                            X509Certificate issuer)
        Create a new OCSP lookup request, if possible to resolve OCSP responder URL.
        Parameters:
        certificate - the certificate to lookup OCSP status for
        issuer - the issuer of the certificate
        Returns:
        a new OCSP lookup request, or Optional.empty() if no OCSP responder URL could be resolved