public final class OCSP
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
OCSP.RevocationStatus
The Revocation Status of a certificate.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getOCSPBytes(java.util.List<CertId> certIds,
java.net.URI responderURI,
java.util.List<java.security.cert.Extension> extensions)
Send an OCSP request, then read and return the OCSP response bytes.
|
static java.net.URI |
getResponderURI(java.security.cert.X509Certificate cert)
Returns the URI of the OCSP Responder as specified in the
certificate's Authority Information Access extension, or null if
not specified.
|
public static byte[] getOCSPBytes(java.util.List<CertId> certIds, java.net.URI responderURI, java.util.List<java.security.cert.Extension> extensions) throws java.io.IOException
certIds - the CertIds to be checkedresponderURI - the URI of the OCSP responderextensions - zero or more OCSP extensions to be included in the
request. If no extensions are requested, an empty List must
be used. A null value is not allowed.java.io.IOException - if there is an exception connecting to or
communicating with the OCSP responderpublic static java.net.URI getResponderURI(java.security.cert.X509Certificate cert)
cert - the certificate