Skip to content

Commit

Permalink
"secret-key" to "secret key"
Browse files Browse the repository at this point in the history
  • Loading branch information
wangweij committed Jan 9, 2025
1 parent f29ca77 commit e30b71d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/java.base/share/classes/javax/crypto/KeyAgreement.java
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ public final int generateSecret(byte[] sharedSecret, int offset)
* {@code generateSecret} to change the private information used in
* subsequent operations.
*
* @param algorithm the requested secret-key algorithm. This is different
* @param algorithm the requested secret key algorithm. This is different
* from the {@code KeyAgreement} algorithm provided to the
* {@code getInstance} method. See the SecretKey Algorithms section in the
* <a href="{@docRoot}/../specs/security/standard-names.html#secretkey-algorithms">
Expand All @@ -677,9 +677,9 @@ public final int generateSecret(byte[] sharedSecret, int offset)
* @exception IllegalStateException if this key agreement has not been
* initialized or if {@code doPhase} has not been called to supply the
* keys for all parties in the agreement
* @exception NoSuchAlgorithmException if the specified secret-key
* @exception NoSuchAlgorithmException if the specified secret key
* algorithm is not supported
* @exception InvalidKeyException if the shared secret-key material cannot
* @exception InvalidKeyException if the shared secret key material cannot
* be used to generate a secret key of the specified algorithm (e.g.,
* the key material is too short)
* @spec security/standard-names.html Java Security Standard Algorithm Names
Expand Down
4 changes: 2 additions & 2 deletions src/java.base/share/classes/javax/crypto/KeyAgreementSpi.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ protected abstract int engineGenerateSecret(byte[] sharedSecret,
* {@code generateSecret} to change the private information used in
* subsequent operations.
*
* @param algorithm the requested secret-key algorithm. This is different
* @param algorithm the requested secret key algorithm. This is different
* from the {@code KeyAgreement} algorithm provided to the
* {@code getInstance} method. See the SecretKey Algorithms section in the
* <a href="{@docRoot}/../specs/security/standard-names.html#secretkey-algorithms">
Expand All @@ -223,7 +223,7 @@ protected abstract int engineGenerateSecret(byte[] sharedSecret,
* @exception IllegalStateException if this key agreement has not been
* initialized or if {@code doPhase} has not been called to supply the
* keys for all parties in the agreement
* @exception NoSuchAlgorithmException if the specified secret-key
* @exception NoSuchAlgorithmException if the specified secret key
* algorithm is not supported
* @exception InvalidKeyException if the shared secret key material cannot
* be used to generate a secret key of the requested algorithm type (e.g.,
Expand Down

0 comments on commit e30b71d

Please sign in to comment.