< prev index next >
src/java.base/share/classes/java/security/spec/PSSParameterSpec.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
*** 126,138 ****
* @param mgfSpec the parameters for the mask generation function.
* If null is specified, null will be returned by
* getMGFParameters().
* @param saltLen the length of salt
* @param trailerField the value of the trailer field
! * @exception NullPointerException if {@code mdName}, or {@code mgfName}
* is null
! * @exception IllegalArgumentException if {@code saltLen} or
* {@code trailerField} is less than 0
* @since 1.5
*/
public PSSParameterSpec(String mdName, String mgfName,
AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField) {
--- 126,138 ----
* @param mgfSpec the parameters for the mask generation function.
* If null is specified, null will be returned by
* getMGFParameters().
* @param saltLen the length of salt
* @param trailerField the value of the trailer field
! * @throws NullPointerException if {@code mdName}, or {@code mgfName}
* is null
! * @throws IllegalArgumentException if {@code saltLen} or
* {@code trailerField} is less than 0
* @since 1.5
*/
public PSSParameterSpec(String mdName, String mgfName,
AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField) {
*** 159,169 ****
* using the specified salt length and other default values as
* defined in PKCS#1.
*
* @param saltLen the length of salt in bytes to be used in PKCS#1
* PSS encoding
! * @exception IllegalArgumentException if {@code saltLen} is
* less than 0
*/
public PSSParameterSpec(int saltLen) {
this("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, saltLen, TRAILER_FIELD_BC);
}
--- 159,169 ----
* using the specified salt length and other default values as
* defined in PKCS#1.
*
* @param saltLen the length of salt in bytes to be used in PKCS#1
* PSS encoding
! * @throws IllegalArgumentException if {@code saltLen} is
* less than 0
*/
public PSSParameterSpec(int saltLen) {
this("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, saltLen, TRAILER_FIELD_BC);
}
< prev index next >