< prev index next >

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


 231         int i = 1;
 232         while (stringIterator.hasNext()) {
 233             sb.append("=========================================="
 234                 + "===============Certificate " + i + " start.\n");
 235             Certificate stringCert = stringIterator.next();
 236             sb.append(stringCert.toString());
 237             sb.append("\n========================================"
 238                 + "=================Certificate " + i + " end.\n\n\n");
 239             i++;
 240         }
 241 
 242         sb.append("\n]");
 243         return sb.toString();
 244     }
 245 
 246     /**
 247      * Returns the encoded form of this certification path, using the default
 248      * encoding.
 249      *
 250      * @return the encoded bytes
 251      * @exception CertificateEncodingException if an encoding error occurs
 252      */
 253     public abstract byte[] getEncoded()
 254         throws CertificateEncodingException;
 255 
 256     /**
 257      * Returns the encoded form of this certification path, using the
 258      * specified encoding.
 259      *
 260      * @param encoding the name of the encoding to use
 261      * @return the encoded bytes
 262      * @exception CertificateEncodingException if an encoding error occurs or
 263      *   the encoding requested is not supported
 264      */
 265     public abstract byte[] getEncoded(String encoding)
 266         throws CertificateEncodingException;
 267 
 268     /**
 269      * Returns the list of certificates in this certification path.
 270      * The {@code List} returned must be immutable and thread-safe.
 271      *
 272      * @return an immutable {@code List} of {@code Certificate}s
 273      *         (may be empty, but not null)
 274      */
 275     public abstract List<? extends Certificate> getCertificates();
 276 
 277     /**
 278      * Replaces the {@code CertPath} to be serialized with a
 279      * {@code CertPathRep} object.
 280      *
 281      * @return the {@code CertPathRep} to be serialized
 282      *




 231         int i = 1;
 232         while (stringIterator.hasNext()) {
 233             sb.append("=========================================="
 234                 + "===============Certificate " + i + " start.\n");
 235             Certificate stringCert = stringIterator.next();
 236             sb.append(stringCert.toString());
 237             sb.append("\n========================================"
 238                 + "=================Certificate " + i + " end.\n\n\n");
 239             i++;
 240         }
 241 
 242         sb.append("\n]");
 243         return sb.toString();
 244     }
 245 
 246     /**
 247      * Returns the encoded form of this certification path, using the default
 248      * encoding.
 249      *
 250      * @return the encoded bytes
 251      * @throws    CertificateEncodingException if an encoding error occurs
 252      */
 253     public abstract byte[] getEncoded()
 254         throws CertificateEncodingException;
 255 
 256     /**
 257      * Returns the encoded form of this certification path, using the
 258      * specified encoding.
 259      *
 260      * @param encoding the name of the encoding to use
 261      * @return the encoded bytes
 262      * @throws    CertificateEncodingException if an encoding error occurs or
 263      *   the encoding requested is not supported
 264      */
 265     public abstract byte[] getEncoded(String encoding)
 266         throws CertificateEncodingException;
 267 
 268     /**
 269      * Returns the list of certificates in this certification path.
 270      * The {@code List} returned must be immutable and thread-safe.
 271      *
 272      * @return an immutable {@code List} of {@code Certificate}s
 273      *         (may be empty, but not null)
 274      */
 275     public abstract List<? extends Certificate> getCertificates();
 276 
 277     /**
 278      * Replaces the {@code CertPath} to be serialized with a
 279      * {@code CertPathRep} object.
 280      *
 281      * @return the {@code CertPathRep} to be serialized
 282      *


< prev index next >