public final class OcspUtils
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static java.net.URI |
ocspUri(java.security.cert.X509Certificate certificate)
Returns the OCSP responder
URI or null if it doesn't have one. |
static OCSPResp |
request(java.net.URI uri,
OCSPReq request,
long timeout,
java.util.concurrent.TimeUnit unit)
TODO: This is a very crude and non-scalable HTTP client to fetch the OCSP response from the
CA's OCSP responder server.
|
public static java.net.URI ocspUri(java.security.cert.X509Certificate certificate) throws java.io.IOException
URI
or null
if it doesn't have one.java.io.IOException
public static OCSPResp request(java.net.URI uri, OCSPReq request, long timeout, java.util.concurrent.TimeUnit unit) throws java.io.IOException
java.io.IOException