< prev index next >

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

*** 1,7 **** /* ! * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 97,107 **** * @param inStream an input stream with the certificate data. * * @return a certificate object initialized with the data * from the input stream. * ! * @exception CertificateException on parsing errors. */ public abstract Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException; /** --- 97,107 ---- * @param inStream an input stream with the certificate data. * * @return a certificate object initialized with the data * from the input stream. * ! * @throws CertificateException on parsing errors. */ public abstract Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException; /**
*** 115,126 **** * and by default throws an {@code UnsupportedOperationException}. * * @param inStream an {@code InputStream} containing the data * @return a {@code CertPath} initialized with the data from the * {@code InputStream} ! * @exception CertificateException if an exception occurs while decoding ! * @exception UnsupportedOperationException if the method is not supported * @since 1.4 */ public CertPath engineGenerateCertPath(InputStream inStream) throws CertificateException { --- 115,126 ---- * and by default throws an {@code UnsupportedOperationException}. * * @param inStream an {@code InputStream} containing the data * @return a {@code CertPath} initialized with the data from the * {@code InputStream} ! * @throws CertificateException if an exception occurs while decoding ! * @throws UnsupportedOperationException if the method is not supported * @since 1.4 */ public CertPath engineGenerateCertPath(InputStream inStream) throws CertificateException {
*** 139,151 **** * * @param inStream an {@code InputStream} containing the data * @param encoding the encoding used for the data * @return a {@code CertPath} initialized with the data from the * {@code InputStream} ! * @exception CertificateException if an exception occurs while decoding or * the encoding requested is not supported ! * @exception UnsupportedOperationException if the method is not supported * @since 1.4 */ public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException { --- 139,151 ---- * * @param inStream an {@code InputStream} containing the data * @param encoding the encoding used for the data * @return a {@code CertPath} initialized with the data from the * {@code InputStream} ! * @throws CertificateException if an exception occurs while decoding or * the encoding requested is not supported ! * @throws UnsupportedOperationException if the method is not supported * @since 1.4 */ public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException {
*** 166,177 **** * and by default throws an {@code UnsupportedOperationException}. * * @param certificates a {@code List} of {@code Certificate}s * @return a {@code CertPath} initialized with the supplied list of * certificates ! * @exception CertificateException if an exception occurs ! * @exception UnsupportedOperationException if the method is not supported * @since 1.4 */ public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) throws CertificateException --- 166,177 ---- * and by default throws an {@code UnsupportedOperationException}. * * @param certificates a {@code List} of {@code Certificate}s * @return a {@code CertPath} initialized with the supplied list of * certificates ! * @throws CertificateException if an exception occurs ! * @throws UnsupportedOperationException if the method is not supported * @since 1.4 */ public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) throws CertificateException
*** 196,206 **** * existing service providers, this method cannot be {@code abstract} * and by default throws an {@code UnsupportedOperationException}. * * @return an {@code Iterator} over the names of the supported * {@code CertPath} encodings (as {@code String}s) ! * @exception UnsupportedOperationException if the method is not supported * @since 1.4 */ public Iterator<String> engineGetCertPathEncodings() { throw new UnsupportedOperationException(); } --- 196,206 ---- * existing service providers, this method cannot be {@code abstract} * and by default throws an {@code UnsupportedOperationException}. * * @return an {@code Iterator} over the names of the supported * {@code CertPath} encodings (as {@code String}s) ! * @throws UnsupportedOperationException if the method is not supported * @since 1.4 */ public Iterator<String> engineGetCertPathEncodings() { throw new UnsupportedOperationException(); }
*** 237,247 **** * * @return a (possibly empty) collection view of * java.security.cert.Certificate objects * initialized with the data from the input stream. * ! * @exception CertificateException on parsing errors. */ public abstract Collection<? extends Certificate> engineGenerateCertificates(InputStream inStream) throws CertificateException; --- 237,247 ---- * * @return a (possibly empty) collection view of * java.security.cert.Certificate objects * initialized with the data from the input stream. * ! * @throws CertificateException on parsing errors. */ public abstract Collection<? extends Certificate> engineGenerateCertificates(InputStream inStream) throws CertificateException;
*** 270,280 **** * @param inStream an input stream with the CRL data. * * @return a CRL object initialized with the data * from the input stream. * ! * @exception CRLException on parsing errors. */ public abstract CRL engineGenerateCRL(InputStream inStream) throws CRLException; /** --- 270,280 ---- * @param inStream an input stream with the CRL data. * * @return a CRL object initialized with the data * from the input stream. * ! * @throws CRLException on parsing errors. */ public abstract CRL engineGenerateCRL(InputStream inStream) throws CRLException; /**
*** 306,315 **** * * @return a (possibly empty) collection view of * java.security.cert.CRL objects initialized with the data from the input * stream. * ! * @exception CRLException on parsing errors. */ public abstract Collection<? extends CRL> engineGenerateCRLs (InputStream inStream) throws CRLException; } --- 306,315 ---- * * @return a (possibly empty) collection view of * java.security.cert.CRL objects initialized with the data from the input * stream. * ! * @throws CRLException on parsing errors. */ public abstract Collection<? extends CRL> engineGenerateCRLs (InputStream inStream) throws CRLException; }
< prev index next >