equal
deleted
inserted
replaced
126 * @param mgfSpec the parameters for the mask generation function. |
126 * @param mgfSpec the parameters for the mask generation function. |
127 * If null is specified, null will be returned by |
127 * If null is specified, null will be returned by |
128 * getMGFParameters(). |
128 * getMGFParameters(). |
129 * @param saltLen the length of salt |
129 * @param saltLen the length of salt |
130 * @param trailerField the value of the trailer field |
130 * @param trailerField the value of the trailer field |
131 * @exception NullPointerException if {@code mdName}, or {@code mgfName} |
131 * @throws NullPointerException if {@code mdName}, or {@code mgfName} |
132 * is null |
132 * is null |
133 * @exception IllegalArgumentException if {@code saltLen} or |
133 * @throws IllegalArgumentException if {@code saltLen} or |
134 * {@code trailerField} is less than 0 |
134 * {@code trailerField} is less than 0 |
135 * @since 1.5 |
135 * @since 1.5 |
136 */ |
136 */ |
137 public PSSParameterSpec(String mdName, String mgfName, |
137 public PSSParameterSpec(String mdName, String mgfName, |
138 AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField) { |
138 AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField) { |
159 * using the specified salt length and other default values as |
159 * using the specified salt length and other default values as |
160 * defined in PKCS#1. |
160 * defined in PKCS#1. |
161 * |
161 * |
162 * @param saltLen the length of salt in bytes to be used in PKCS#1 |
162 * @param saltLen the length of salt in bytes to be used in PKCS#1 |
163 * PSS encoding |
163 * PSS encoding |
164 * @exception IllegalArgumentException if {@code saltLen} is |
164 * @throws IllegalArgumentException if {@code saltLen} is |
165 * less than 0 |
165 * less than 0 |
166 */ |
166 */ |
167 public PSSParameterSpec(int saltLen) { |
167 public PSSParameterSpec(int saltLen) { |
168 this("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, saltLen, TRAILER_FIELD_BC); |
168 this("SHA-1", "MGF1", MGF1ParameterSpec.SHA1, saltLen, TRAILER_FIELD_BC); |
169 } |
169 } |