| Modifier and Type | Class and Description |
|---|---|
| public static interface | OCSP.
The Revocation Status of a certificate. |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | CONNECT_TIMEOUT
Integer value indicating the timeout length, in milliseconds, to be used for establishing a connection to an OCSP responder. |
| private static final Debug | |
| private static final int | |
| private static final int | READ_TIMEOUT
Integer value indicating the timeout length, in milliseconds, to be used for reading an OCSP response from the responder. |
| private static final boolean | USE_GET
Boolean value indicating whether OCSP client can use GET for OCSP requests. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static OCSPResponse | Returns: the OCSPResponsethe CertIds to be checked certIds, URI the URI of the OCSP responder responderURI, OCSPResponse.the issuer's certificate and/or subject and public key issuerInfo,the OCSP responder's certificate responderCert, Date the time the validity of the OCSP responder's certificate
should be checked against. If null, the current time is used. date, List<Extension> zero or more OCSP extensions to be included in the
request. If no extensions are requested, an empty extensions, String variant)List must
be used. A null value is not allowed.Checks the revocation status of a list of certificates using OCSP. |
| public static byte[] | Returns: the OCSP response bytesthe CertIds to be checked certIds, URI the URI of the OCSP responder responderURI, List<Extension> zero or more OCSP extensions to be included in the
request. If no extensions are requested, an empty extensions)List must
be used. A null value is not allowed.Send an OCSP request, then read and return the OCSP response bytes. |
| public static URI | Returns: the URI of the OCSP Responder, or null if not specifiedthe certificate cert)Returns the URI of the OCSP Responder as specified in the certificate's Authority Information Access extension, or null if not specified. |
| pack-priv static URI | |
| private static boolean | |
| private static int | initializeTimeout(String prop, int def)
Initialize the timeout length by getting the OCSP timeout system property. |
| CONNECT_TIMEOUT | back to summary |
|---|---|
| private static final int CONNECT_TIMEOUT Integer value indicating the timeout length, in milliseconds, to be used for establishing a connection to an OCSP responder. A timeout of zero is interpreted as an infinite timeout. | |
| debug | back to summary |
|---|---|
| private static final Debug debug | |
| DEFAULT_CONNECT_TIMEOUT | back to summary |
|---|---|
| private static final int DEFAULT_CONNECT_TIMEOUT | |
| READ_TIMEOUT | back to summary |
|---|---|
| private static final int READ_TIMEOUT Integer value indicating the timeout length, in milliseconds, to be used for reading an OCSP response from the responder. A timeout of zero is interpreted as an infinite timeout. | |
| USE_GET | back to summary |
|---|---|
| private static final boolean USE_GET Boolean value indicating whether OCSP client can use GET for OCSP requests. There is an ambiguity in RFC recommendations. RFC 5019 says a stronger thing, "MUST": "When sending requests that are less than or equal to 255 bytes in total (after encoding) including the scheme and delimiters (http://), server name and base64-encoded OCSPRequest structure, clients MUST use the GET method (to enable OCSP response caching)." RFC 6960 says a weaker thing, "MAY": "HTTP-based OCSP requests can use either the GET or the POST method to submit their requests. To enable HTTP caching, small requests (that after encoding are less than 255 bytes) MAY be submitted using GET." For performance reasons, we default to stronger behavior. But this option also allows to fallback to weaker behavior in case of compatibility problems. | |
| OCSP | back to summary |
|---|---|
| private OCSP() | |
| check | back to summary |
|---|---|
| pack-priv static OCSPResponse check(List<CertId> certIds, URI responderURI, OCSPResponse. Checks the revocation status of a list of certificates using OCSP.
| |
| getOCSPBytes | back to summary |
|---|---|
| public static byte[] getOCSPBytes(List<CertId> certIds, URI responderURI, List<Extension> extensions) throws IOException Send an OCSP request, then read and return the OCSP response bytes.
| |
| getResponderURI | back to summary |
|---|---|
| public static URI getResponderURI(X509Certificate cert) Returns the URI of the OCSP Responder as specified in the certificate's Authority Information Access extension, or null if not specified.
| |
| getResponderURI | back to summary |
|---|---|
| pack-priv static URI getResponderURI(X509CertImpl certImpl) | |
| initializeBoolean | back to summary |
|---|---|
| private static boolean initializeBoolean(String prop, boolean def) | |
| initializeTimeout | back to summary |
|---|---|
| private static int initializeTimeout(String prop, int def) Initialize the timeout length by getting the OCSP timeout system property. If the property has not been set, or if its value is negative, set the timeout length to the default. | |
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Method and Description |
|---|---|
| public OCSP. | |
| public CRLReason | getRevocationReason()
Returns the reason the certificate was revoked, or null if it has not been revoked. |
| public Date | getRevocationTime()
Returns the time when the certificate was revoked, or null if it has not been revoked. |
| public Map |
| getCertStatus | back to summary |
|---|---|
| public OCSP. Returns the revocation status. | |
| getRevocationReason | back to summary |
|---|---|
| public CRLReason getRevocationReason() Returns the reason the certificate was revoked, or null if it has not been revoked. | |
| getRevocationTime | back to summary |
|---|---|
| public Date getRevocationTime() Returns the time when the certificate was revoked, or null if it has not been revoked. | |
| getSingleExtensions | back to summary |
|---|---|
| public Map Returns a Map of additional extensions. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final OCSP. | |
| public static final OCSP. | |
| public static final OCSP. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static OCSP. | |
| public static OCSP. |
| GOOD | back to summary |
|---|---|
| public static final OCSP. | |
| REVOKED | back to summary |
|---|---|
| public static final OCSP. | |
| UNKNOWN | back to summary |
|---|---|
| public static final OCSP. | |
| CertStatus | back to summary |
|---|---|
| private CertStatus() | |
| valueOf | back to summary |
|---|---|
| public static OCSP. | |
| values | back to summary |
|---|---|
| public static OCSP. | |