CertificateExpiredException (Java SE 15 & JDK 15) (original) (raw)

All Implemented Interfaces:

[Serializable](../../../java/io/Serializable.html "interface in java.io")


@Deprecated(since="9", forRemoval=true) public class CertificateExpiredException extends CertificateException

Deprecated, for removal: This API element is subject to removal in a future version.

Certificate Expired Exception. This is thrown whenever the currentDate or the specified Date is after thenotAfter date/time specified in the validity period of the certificate.

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 injava.security.cert.

Since:

1.4

See Also:

Serialized Form

Constructors

Constructor Description
CertificateExpiredException() Deprecated, for removal: This API element is subject to removal in a future version. Constructs a CertificateExpiredException with no detail message.
CertificateExpiredException​(String message) Deprecated, for removal: This API element is subject to removal in a future version. Constructs a CertificateExpiredException with the specified detail message.

Methods declared in class java.lang.Throwable

[addSuppressed](../../../java/lang/Throwable.html#addSuppressed%28java.lang.Throwable%29), [fillInStackTrace](../../../java/lang/Throwable.html#fillInStackTrace%28%29), [getCause](../../../java/lang/Throwable.html#getCause%28%29), [getLocalizedMessage](../../../java/lang/Throwable.html#getLocalizedMessage%28%29), [getMessage](../../../java/lang/Throwable.html#getMessage%28%29), [getStackTrace](../../../java/lang/Throwable.html#getStackTrace%28%29), [getSuppressed](../../../java/lang/Throwable.html#getSuppressed%28%29), [initCause](../../../java/lang/Throwable.html#initCause%28java.lang.Throwable%29), [printStackTrace](../../../java/lang/Throwable.html#printStackTrace%28%29), [printStackTrace](../../../java/lang/Throwable.html#printStackTrace%28java.io.PrintStream%29), [printStackTrace](../../../java/lang/Throwable.html#printStackTrace%28java.io.PrintWriter%29), [setStackTrace](../../../java/lang/Throwable.html#setStackTrace%28java.lang.StackTraceElement%5B%5D%29), [toString](../../../java/lang/Throwable.html#toString%28%29)