GeezerVison is showing docs.oracle.com — PKIXRevocationChecker (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
compact1, compact2, compact3
java.security.cert
Class PKIXRevocationChecker
-
-
Nested Class Summary
Nested Classes
| Modifier and Type |
Class |
Description |
static class |
PKIXRevocationChecker.Option |
Various revocation options that can be specified for the revocation
checking mechanism.
|
-
-
Method Detail
-
setOcspResponder
public void setOcspResponder(URI uri)
Sets the URI that identifies the location of the OCSP responder. This
overrides the ocsp.responderURL security property and any
responder specified in a certificate's Authority Information Access
Extension, as defined in RFC 5280.
- Parameters:
uri - the responder URI
-
getOcspResponder
public URI getOcspResponder()
Gets the URI that identifies the location of the OCSP responder. This
overrides the ocsp.responderURL security property. If this
parameter or the ocsp.responderURL property is not set, the
location is determined from the certificate's Authority Information
Access Extension, as defined in RFC 5280.
- Returns:
- the responder URI, or
null if not set
-
setOcspResponderCert
public void setOcspResponderCert(X509Certificate cert)
Sets the OCSP responder's certificate. This overrides the
ocsp.responderCertSubjectName,
ocsp.responderCertIssuerName,
and ocsp.responderCertSerialNumber security properties.
- Parameters:
cert - the responder's certificate
-
getOcspResponderCert
public X509Certificate getOcspResponderCert()
Gets the OCSP responder's certificate. This overrides the
ocsp.responderCertSubjectName,
ocsp.responderCertIssuerName,
and ocsp.responderCertSerialNumber security properties. If this
parameter or the aforementioned properties are not set, then the
responder's certificate is determined as specified in RFC 2560.
- Returns:
- the responder's certificate, or
null if not set
-
setOcspResponses
public void setOcspResponses(Map<X509Certificate,byte[]> responses)
Sets the OCSP responses. These responses are used to determine
the revocation status of the specified certificates when OCSP is used.
- Parameters:
responses - a map of OCSP responses. Each key is an
X509Certificate that maps to the corresponding
DER-encoded OCSP response for that certificate. A deep copy of
the map is performed to protect against subsequent modification.
-
getOcspResponses
public Map<X509Certificate,byte[]> getOcspResponses()
Gets the OCSP responses. These responses are used to determine
the revocation status of the specified certificates when OCSP is used.
- Returns:
- a map of OCSP responses. Each key is an
X509Certificate that maps to the corresponding
DER-encoded OCSP response for that certificate. A deep copy of
the map is returned to protect against subsequent modification.
Returns an empty map if no responses have been specified.
-
clone
public PKIXRevocationChecker clone()
Returns a clone of this object. Calls the Object.clone()
method.
All subclasses which maintain state must support and
override this method, if necessary.
- Overrides:
clone in class PKIXCertPathChecker
- Returns:
- a copy of this
PKIXCertPathChecker
- See Also:
Cloneable
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|