< prev index next >

src/java.base/share/classes/java/security/cert/X509CRL.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

*** 168,194 **** /** * Returns the ASN.1 DER-encoded form of this CRL. * * @return the encoded form of this certificate ! * @exception CRLException if an encoding error occurs. */ public abstract byte[] getEncoded() throws CRLException; /** * Verifies that this CRL was signed using the * private key that corresponds to the given 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 CRLException on encoding errors. */ public abstract void verify(PublicKey key) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException; --- 168,194 ---- /** * Returns the ASN.1 DER-encoded form of this CRL. * * @return the encoded form of this certificate ! * @throws CRLException if an encoding error occurs. */ public abstract byte[] getEncoded() throws CRLException; /** * Verifies that this CRL was signed using the * private key that corresponds to the given 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 CRLException on encoding errors. */ public abstract void verify(PublicKey key) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException;
*** 200,215 **** * supplied by the given 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 CRLException on encoding errors. */ public abstract void verify(PublicKey key, String sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException; --- 200,215 ---- * supplied by the given 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 CRLException on encoding errors. */ public abstract void verify(PublicKey key, String sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException;
*** 227,241 **** * and it provides a default implementation. * * @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 CRLException on encoding errors. * @since 1.8 */ public void verify(PublicKey key, Provider sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, SignatureException { --- 227,241 ---- * and it provides a default implementation. * * @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 CRLException on encoding errors. * @since 1.8 */ public void verify(PublicKey key, Provider sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, SignatureException {
*** 381,391 **** * * @param certificate the certificate for which a CRL entry is to be looked * up * @return the entry for the given certificate, or null if no such entry * exists in this CRL. ! * @exception NullPointerException if certificate is null * * @since 1.5 */ public X509CRLEntry getRevokedCertificate(X509Certificate certificate) { X500Principal certIssuer = certificate.getIssuerX500Principal(); --- 381,391 ---- * * @param certificate the certificate for which a CRL entry is to be looked * up * @return the entry for the given certificate, or null if no such entry * exists in this CRL. ! * @throws NullPointerException if certificate is null * * @since 1.5 */ public X509CRLEntry getRevokedCertificate(X509Certificate certificate) { X500Principal certIssuer = certificate.getIssuerX500Principal();
*** 409,419 **** * Gets the DER-encoded CRL information, the * {@code tbsCertList} from this CRL. * This can be used to verify the signature independently. * * @return the DER-encoded CRL information. ! * @exception CRLException if an encoding error occurs. */ public abstract byte[] getTBSCertList() throws CRLException; /** * Gets the {@code signature} value (the raw signature bits) from --- 409,419 ---- * Gets the DER-encoded CRL information, the * {@code tbsCertList} from this CRL. * This can be used to verify the signature independently. * * @return the DER-encoded CRL information. ! * @throws CRLException if an encoding error occurs. */ public abstract byte[] getTBSCertList() throws CRLException; /** * Gets the {@code signature} value (the raw signature bits) from
< prev index next >