--- a/src/java.base/share/classes/java/security/cert/X509Certificate.java Thu Oct 17 20:27:44 2019 +0100
+++ b/src/java.base/share/classes/java/security/cert/X509Certificate.java Thu Oct 17 20:53:35 2019 +0100
@@ -108,6 +108,7 @@
public abstract class X509Certificate extends Certificate
implements X509Extension {
+ @java.io.Serial
private static final long serialVersionUID = -2491127588187038216L;
private transient X500Principal subjectX500Principal, issuerX500Principal;
@@ -140,8 +141,8 @@
* generalTime GeneralizedTime }
* </pre>
*
- * @exception CertificateExpiredException if the certificate has expired.
- * @exception CertificateNotYetValidException if the certificate is not
+ * @throws CertificateExpiredException if the certificate has expired.
+ * @throws CertificateNotYetValidException if the certificate is not
* yet valid.
*/
public abstract void checkValidity()
@@ -155,9 +156,9 @@
* @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
+ * @throws CertificateExpiredException if the certificate has expired
* with respect to the {@code date} supplied.
- * @exception CertificateNotYetValidException if the certificate is not
+ * @throws CertificateNotYetValidException if the certificate is not
* yet valid with respect to the {@code date} supplied.
*
* @see #checkValidity()
@@ -333,7 +334,7 @@
* This can be used to verify the signature independently.
*
* @return the DER-encoded certificate information.
- * @exception CertificateEncodingException if an encoding error occurs.
+ * @throws CertificateEncodingException if an encoding error occurs.
*/
public abstract byte[] getTBSCertificate()
throws CertificateEncodingException;
@@ -665,12 +666,12 @@
* @param key the PublicKey used to carry out the verification.
* @param sigProvider the signature provider.
*
- * @exception NoSuchAlgorithmException on unsupported signature
+ * @throws NoSuchAlgorithmException on unsupported signature
* algorithms.
- * @exception InvalidKeyException on incorrect key.
- * @exception SignatureException on signature errors.
- * @exception CertificateException on encoding errors.
- * @exception UnsupportedOperationException if the method is not supported
+ * @throws InvalidKeyException on incorrect key.
+ * @throws SignatureException on signature errors.
+ * @throws CertificateException on encoding errors.
+ * @throws UnsupportedOperationException if the method is not supported
* @since 1.8
*/
public void verify(PublicKey key, Provider sigProvider)