aboutsummaryrefslogtreecommitdiff
path: root/src/java.base/share/classes/java/security/SignedObject.java
diff options
context:
space:
mode:
authorJulia Boes <jboes@openjdk.org>2019-09-20 11:07:52 +0100
committerJulia Boes <jboes@openjdk.org>2019-09-20 11:07:52 +0100
commitb15b322cf396287b5ae7b8e2a19205791d902fad (patch)
tree91c03d816c53f2f39a897978fb3bcc793173ef54 /src/java.base/share/classes/java/security/SignedObject.java
parent2fc6c6459d4b0c7538787987ee0518b0133e790d (diff)
downloadopenjdk-b15b322cf396287b5ae7b8e2a19205791d902fad.tar.gz
openjdk-b15b322cf396287b5ae7b8e2a19205791d902fad.zip
8230648: Replace @exception tag with @throws in java.base
Minor coding style update of javadoc tag in any file in java.base Reviewed-by: prappo, lancea
Diffstat (limited to 'src/java.base/share/classes/java/security/SignedObject.java')
-rw-r--r--src/java.base/share/classes/java/security/SignedObject.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/java.base/share/classes/java/security/SignedObject.java b/src/java.base/share/classes/java/security/SignedObject.java
index 0562340d130..7b2d565bca4 100644
--- a/src/java.base/share/classes/java/security/SignedObject.java
+++ b/src/java.base/share/classes/java/security/SignedObject.java
@@ -140,9 +140,9 @@ public final class SignedObject implements Serializable {
* @param signingKey the private key for signing.
* @param signingEngine the signature signing engine.
*
- * @exception IOException if an error occurs during serialization
- * @exception InvalidKeyException if the key is invalid.
- * @exception SignatureException if signing fails.
+ * @throws IOException if an error occurs during serialization
+ * @throws InvalidKeyException if the key is invalid.
+ * @throws SignatureException if signing fails.
*/
public SignedObject(Serializable object, PrivateKey signingKey,
Signature signingEngine)
@@ -168,8 +168,8 @@ public final class SignedObject implements Serializable {
*
* @return the encapsulated object.
*
- * @exception IOException if an error occurs during de-serialization
- * @exception ClassNotFoundException if an error occurs during
+ * @throws IOException if an error occurs during de-serialization
+ * @throws ClassNotFoundException if an error occurs during
* de-serialization
*/
public Object getObject()
@@ -212,10 +212,10 @@ public final class SignedObject implements Serializable {
* @param verificationKey the public key for verification.
* @param verificationEngine the signature verification engine.
*
- * @exception SignatureException if signature verification failed (an
+ * @throws SignatureException if signature verification failed (an
* exception prevented the signature verification engine from completing
* normally).
- * @exception InvalidKeyException if the verification key is invalid.
+ * @throws InvalidKeyException if the verification key is invalid.
*
* @return {@code true} if the signature
* is valid, {@code false} otherwise
@@ -235,8 +235,8 @@ public final class SignedObject implements Serializable {
* @param signingKey the private key for signing.
* @param signingEngine the signature signing engine.
*
- * @exception InvalidKeyException if the key is invalid.
- * @exception SignatureException if signing fails.
+ * @throws InvalidKeyException if the key is invalid.
+ * @throws SignatureException if signing fails.
*/
private void sign(PrivateKey signingKey, Signature signingEngine)
throws InvalidKeyException, SignatureException {