CertificateNotYetValidException

  • CertificateNotYetValidException signals that a certificate's validity period has not yet begun.

  • It's triggered when the current or specified date precedes the certificate's notBefore date.

  • This exception is part of the javax.security.cert package, retained for compatibility with older Java versions.

  • New applications should utilize the java.security.cert package for certificate-related operations.

  • It provides constructors to create exceptions with or without detailed messages.

public class CertificateNotYetValidException extends CertificateException

Certificate is not yet valid exception. This is thrown whenever the current Date or the specified Date is before the notBefore date/time in the Certificate validity period.

Note: The classes in the package javax.security.cert exist for compatibility with earlier versions of the Java Secure Sockets Extension (JSSE). New applications should instead use the standard Java SE certificate classes located in java.security.cert.

Public Constructor Summary

CertificateNotYetValidException()
Constructs a CertificateNotYetValidException with no detail message.
CertificateNotYetValidException(String message)
Constructs a CertificateNotYetValidException with the specified detail message.

Inherited Method Summary

Public Constructors

public CertificateNotYetValidException ()

Constructs a CertificateNotYetValidException with no detail message. A detail message is a String that describes this particular exception.

public CertificateNotYetValidException (String message)

Constructs a CertificateNotYetValidException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters
message the detail message.