Interface RevocationConfig

All Superinterfaces:
All Known Implementing Classes:

public interface RevocationConfig extends Prototype.Api
Certificate revocation configuration. This configuration determines whether client certificate validation should include checking if it is still considered valid by the certificate authority.
Types of certificate validation checks:
  • CRL - shortcut name for Certificate Revocation List. It is a list of certificates that have been revoked by a certificate authority before their expiration date
  • OCSP - shortcut name for Online Certificate Status Protocol. It is a real-time protocol used to check the status of a certificate, providing immediate verification of its validity
See Also:
  • Method Details

    • builder

      static RevocationConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      a new builder
    • builder

      static RevocationConfig.Builder builder(RevocationConfig instance)
      Create a new fluent API builder from an existing instance.
      instance - an existing instance used as a base for the builder
      a builder based on an instance
    • create

      static RevocationConfig create(Config config)
      Create a new instance from configuration.
      config - used to configure the new instance
      a new instance configured from configuration
    • create

      static RevocationConfig create()
      Create a new instance with default values.
      a new instance
    • enabled

      boolean enabled()
      Flag indicating whether this revocation config is enabled.
      enabled flag
    • preferCrlOverOcsp

      boolean preferCrlOverOcsp()
      Prefer CRL over OCSP. Default value is false. OCSP is preferred over the CRL by default.
      whether to prefer CRL over OCSP
    • checkOnlyEndEntity

      boolean checkOnlyEndEntity()
      Only check the revocation status of end-entity certificates. Default value is false.
      whether to check only end-entity certificates
    • fallbackEnabled

      boolean fallbackEnabled()
      Enable fallback to the less preferred checking option.
      If the primary method for revocation checking fails to verify the revocation status of a certificate (such as using a CRL or OCSP), the checker will attempt alternative methods. This option ensures whether revocation checking is performed strictly according to the specified method, or should fallback to the one less preferred. OCSP is preferred over the CRL by default.
      whether to allow fallback to the less preferred checking option
    • softFailEnabled

      boolean softFailEnabled()
      Allow revocation check to succeed if the revocation status cannot be determined for one of the following reasons:
      • The CRL or OCSP response cannot be obtained because of a network error.
      • The OCSP responder returns one of the following errors specified in section 2.3 of RFC 2560: internalError or tryLater.
      whether soft fail is enabled
    • ocspResponderUri

      Optional<URI> ocspResponderUri()
      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.
      OCSP responder URI