X509Certificate.checkValidity

Checks that the given date is within the certificate's validity period. In other words, this determines whether the certificate would be valid at the given date/time.

@param date the Date to check against to see if this certificate is valid at that date/time.

@exception CertificateExpiredException if the certificate has expired with respect to the {@code date} supplied. @exception CertificateNotYetValidException if the certificate is not yet valid with respect to the {@code date} supplied.

@see #checkValidity()

  1. void checkValidity()
  2. void checkValidity(Date date)
    class X509Certificate
    abstract
    void
    checkValidity
    (
    Date date
    )
  3. X500Principal subjectX500Principal;
  4. X500Principal issuerX500Principal;

Meta