< prev index next >

src/java.base/share/classes/java/security/cert/Certificate.java

Print this page
rev 56290 : 8230648: Replace @exception tag with @throws in java.base
Summary: Minor coding style update of javadoc tag in any file in java.base
Reviewed-by: prappo, lancea

*** 146,172 **** * form of encoding; for example, X.509 certificates would * be encoded as ASN.1 DER. * * @return the encoded form of this certificate * ! * @exception CertificateEncodingException if an encoding error occurs. */ public abstract byte[] getEncoded() throws CertificateEncodingException; /** * Verifies that this certificate was signed using the * private key that corresponds to the specified public key. * * @param key the PublicKey used to carry out the verification. * ! * @exception NoSuchAlgorithmException on unsupported signature * algorithms. ! * @exception InvalidKeyException on incorrect key. ! * @exception NoSuchProviderException if there's no default provider. ! * @exception SignatureException on signature errors. ! * @exception CertificateException on encoding errors. */ public abstract void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException; --- 146,172 ---- * form of encoding; for example, X.509 certificates would * be encoded as ASN.1 DER. * * @return the encoded form of this certificate * ! * @throws CertificateEncodingException if an encoding error occurs. */ public abstract byte[] getEncoded() throws CertificateEncodingException; /** * Verifies that this certificate was signed using the * private key that corresponds to the specified public key. * * @param key the PublicKey used to carry out the verification. * ! * @throws NoSuchAlgorithmException on unsupported signature * algorithms. ! * @throws InvalidKeyException on incorrect key. ! * @throws NoSuchProviderException if there's no default provider. ! * @throws SignatureException on signature errors. ! * @throws CertificateException on encoding errors. */ public abstract void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException;
*** 178,193 **** * supplied by the specified provider. * * @param key the PublicKey used to carry out the verification. * @param sigProvider the name of the signature provider. * ! * @exception NoSuchAlgorithmException on unsupported signature * algorithms. ! * @exception InvalidKeyException on incorrect key. ! * @exception NoSuchProviderException on incorrect provider. ! * @exception SignatureException on signature errors. ! * @exception CertificateException on encoding errors. */ public abstract void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException; --- 178,193 ---- * supplied by the specified provider. * * @param key the PublicKey used to carry out the verification. * @param sigProvider the name of the signature provider. * ! * @throws NoSuchAlgorithmException on unsupported signature * algorithms. ! * @throws InvalidKeyException on incorrect key. ! * @throws NoSuchProviderException on incorrect provider. ! * @throws SignatureException on signature errors. ! * @throws CertificateException on encoding errors. */ public abstract void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException;
*** 205,220 **** * and by default throws an {@code UnsupportedOperationException}. * * @param key the PublicKey used to carry out the verification. * @param sigProvider the signature provider. * ! * @exception 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 * @since 1.8 */ public void verify(PublicKey key, Provider sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, SignatureException { --- 205,220 ---- * and by default throws an {@code UnsupportedOperationException}. * * @param key the PublicKey used to carry out the verification. * @param sigProvider the signature provider. * ! * @throws NoSuchAlgorithmException on unsupported signature * algorithms. ! * @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) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, SignatureException {
< prev index next >