public final class OcspUtils extends Object
Modifier and Type | Method and Description |
---|---|
static URI |
ocspUri(X509Certificate certificate)
Returns the OCSP responder
URI or null if it doesn't have one. |
static org.bouncycastle.cert.ocsp.OCSPResp |
request(URI uri,
org.bouncycastle.cert.ocsp.OCSPReq request,
long timeout,
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 URI ocspUri(X509Certificate certificate) throws IOException
URI
or null
if it doesn't have one.IOException
public static org.bouncycastle.cert.ocsp.OCSPResp request(URI uri, org.bouncycastle.cert.ocsp.OCSPReq request, long timeout, TimeUnit unit) throws IOException
IOException
Copyright © 2008–2020 The Netty Project. All rights reserved.