Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 3740d05

Browse files
author
Poonam Bajaj
committed
8285400: Add '@APinote' to the APIs defined in Java SE 8 MR 3
Reviewed-by: wetmore, mchung, valeriep
1 parent 58ec25d commit 3740d05

File tree

12 files changed

+40
-16
lines changed

12 files changed

+40
-16
lines changed

jdk/src/share/classes/java/security/Signature.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -592,8 +592,6 @@ public final void initVerify(Certificate certificate)
592592
* is not encoded properly or does not include required parameter
593593
* information or cannot be used for digital signature purposes.
594594
* @exception InvalidAlgorithmParameterException if the params is invalid.
595-
*
596-
* @since 8
597595
*/
598596
final void initVerify(Certificate certificate,
599597
AlgorithmParameterSpec params)

jdk/src/share/classes/java/security/interfaces/RSAKey.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -56,6 +56,7 @@ public interface RSAKey {
5656
* explicitly specified or implicitly created during
5757
* key pair generation.
5858
*
59+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
5960
* @implSpec
6061
* The default implementation returns {@code null}.
6162
*

jdk/src/share/classes/java/security/spec/MGF1ParameterSpec.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -98,12 +98,18 @@ public class MGF1ParameterSpec implements AlgorithmParameterSpec {
9898

9999
/**
100100
* The MGF1ParameterSpec which uses SHA-512/224 message digest
101+
*
102+
* @apiNote This field is defined in Java SE 8 Maintenance Release 3.
103+
* @since 8
101104
*/
102105
public static final MGF1ParameterSpec SHA512_224 =
103106
new MGF1ParameterSpec("SHA-512/224");
104107

105108
/**
106109
* The MGF1ParameterSpec which uses SHA-512/256 message digest
110+
*
111+
* @apiNote This field is defined in Java SE 8 Maintenance Release 3.
112+
* @since 8
107113
*/
108114
public static final MGF1ParameterSpec SHA512_256 =
109115
new MGF1ParameterSpec("SHA-512/256");

jdk/src/share/classes/java/security/spec/PSSParameterSpec.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -96,6 +96,7 @@ public class PSSParameterSpec implements AlgorithmParameterSpec {
9696
/**
9797
* The {@code TrailerFieldBC} constant as defined in PKCS#1
9898
*
99+
* @apiNote This field is defined in Java SE 8 Maintenance Release 3.
99100
* @since 8
100101
*/
101102
public static final int TRAILER_FIELD_BC = 1;

jdk/src/share/classes/java/security/spec/RSAKeyGenParameterSpec.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -70,6 +70,7 @@ public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent) {
7070
* Constructs a new {@code RSAKeyGenParameterSpec} object from the
7171
* given keysize, public-exponent value, and key parameters.
7272
*
73+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
7374
* @param keysize the modulus size (specified in number of bits)
7475
* @param publicExponent the public exponent
7576
* @param keyParams the key parameters, may be null
@@ -103,6 +104,7 @@ public BigInteger getPublicExponent() {
103104
/**
104105
* Returns the parameters to be associated with key.
105106
*
107+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
106108
* @return the associated parameters, may be null if
107109
* not present
108110
* @since 8

jdk/src/share/classes/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -104,6 +104,7 @@ public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus,
104104
* are copied to protect against subsequent modification when
105105
* constructing this object.
106106
*
107+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
107108
* @param modulus the modulus n
108109
* @param publicExponent the public exponent e
109110
* @param privateExponent the private exponent d

jdk/src/share/classes/java/security/spec/RSAPrivateCrtKeySpec.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -81,6 +81,7 @@ public RSAPrivateCrtKeySpec(BigInteger modulus,
8181
* Creates a new {@code RSAPrivateCrtKeySpec} with additional
8282
* key parameters.
8383
*
84+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
8485
* @param modulus the modulus n
8586
* @param publicExponent the public exponent e
8687
* @param privateExponent the private exponent d

jdk/src/share/classes/java/security/spec/RSAPrivateKeySpec.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -60,6 +60,7 @@ public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent) {
6060
/**
6161
* Creates a new RSAPrivateKeySpec with additional key parameters.
6262
*
63+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
6364
* @param modulus the modulus
6465
* @param privateExponent the private exponent
6566
* @param params the parameters associated with this key, may be null
@@ -94,6 +95,7 @@ public BigInteger getPrivateExponent() {
9495
* Returns the parameters associated with this key, may be null if not
9596
* present.
9697
*
98+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
9799
* @return the parameters associated with this key
98100
* @since 8
99101
*/

jdk/src/share/classes/java/security/spec/RSAPublicKeySpec.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -60,6 +60,7 @@ public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent) {
6060
/**
6161
* Creates a new RSAPublicKeySpec with additional key parameters.
6262
*
63+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
6364
* @param modulus the modulus
6465
* @param publicExponent the public exponent
6566
* @param params the parameters associated with this key, may be null
@@ -95,6 +96,7 @@ public BigInteger getPublicExponent() {
9596
* Returns the parameters associated with this key, may be null if not
9697
* present.
9798
*
99+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
98100
* @return the parameters associated with this key
99101
* @since 8
100102
*/

jdk/src/share/classes/javax/net/ssl/SSLEngine.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1265,6 +1265,7 @@ public void setSSLParameters(SSLParameters params) {
12651265
* Application-Layer Protocol Negotiation (ALPN), can negotiate
12661266
* application-level values between peers.
12671267
*
1268+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
12681269
* @implSpec
12691270
* The implementation in this class throws
12701271
* {@code UnsupportedOperationException} and performs no other action.
@@ -1290,6 +1291,7 @@ public String getApplicationProtocol() {
12901291
* a connection may be in the middle of a handshake. The
12911292
* application protocol may or may not yet be available.
12921293
*
1294+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
12931295
* @implSpec
12941296
* The implementation in this class throws
12951297
* {@code UnsupportedOperationException} and performs no other action.
@@ -1350,7 +1352,8 @@ public String getHandshakeApplicationProtocol() {
13501352
* });
13511353
* }</pre>
13521354
*
1353-
* @apiNote
1355+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
1356+
* <p>
13541357
* This method should be called by TLS server applications before the TLS
13551358
* handshake begins. Also, this {@code SSLEngine} should be configured with
13561359
* parameters that are compatible with the application protocol selected by
@@ -1380,6 +1383,7 @@ public void setHandshakeApplicationProtocolSelector(
13801383
* setHandshakeApplicationProtocolSelector}
13811384
* for the function's type parameters.
13821385
*
1386+
* @apiNote This method is defined in Java SE 8 Maintenance Release 3.
13831387
* @implSpec
13841388
* The implementation in this class throws
13851389
* {@code UnsupportedOperationException} and performs no other action.

0 commit comments

Comments
 (0)