JDK-8209038 : Clarify the javadoc of Cipher.getParameters()
  • Type: Enhancement
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-08-06
  • Updated: 2022-05-19
  • Resolved: 2022-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 b23Fixed
Related Reports
CSR :  
Relates :  
Description
Existing javadoc of Cipher.getParameters()/CipherSpi.engineGetParameters() can use some update:
1) syntax-wise: see JDK-8206171 changes in Signature.getParameters/SignatureSpi.engineGetParameters()
2) meaning of null: consider to allow null to be returned if providers cannot generate default parameters. Just as the changes of JDK-8206171.
3) accommodate algorithm-specific/provider-specific implementation on how parameters is handled. For example, in PBE-based Cipher, one can only include salt and iteration count in the init params, and init() will add in a random IV, and then parameters is retrieved with getParameters().
Comments
Changeset: 0c5ab6da Author: Valerie Peng <valeriep@openjdk.org> Date: 2022-05-17 18:37:23 +0000 URL: https://git.openjdk.java.net/jdk/commit/0c5ab6daa93cd063d8fa54880f7b1aa981c27c5f
17-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8117 Date: 2022-04-06 00:14:04 +0000
06-04-2022