equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
83 * @param params the parameters to use to generate the keys. |
83 * @param params the parameters to use to generate the keys. |
84 * |
84 * |
85 * @param random the random bit source to use to generate key bits; |
85 * @param random the random bit source to use to generate key bits; |
86 * can be null. |
86 * can be null. |
87 * |
87 * |
88 * @exception InvalidParameterException if the {@code params} |
88 * @throws InvalidParameterException if the {@code params} |
89 * value is invalid, null, or unsupported. |
89 * value is invalid, null, or unsupported. |
90 */ |
90 */ |
91 public void initialize(DSAParams params, SecureRandom random) |
91 public void initialize(DSAParams params, SecureRandom random) |
92 throws InvalidParameterException; |
92 throws InvalidParameterException; |
93 |
93 |
110 * can be null. |
110 * can be null. |
111 * |
111 * |
112 * @param genParams whether or not to generate new parameters for |
112 * @param genParams whether or not to generate new parameters for |
113 * the modulus length requested. |
113 * the modulus length requested. |
114 * |
114 * |
115 * @exception InvalidParameterException if {@code modlen} is |
115 * @throws InvalidParameterException if {@code modlen} is |
116 * invalid, or unsupported, or if {@code genParams} is false and there |
116 * invalid, or unsupported, or if {@code genParams} is false and there |
117 * are no precomputed parameters for the requested modulus length. |
117 * are no precomputed parameters for the requested modulus length. |
118 */ |
118 */ |
119 public void initialize(int modlen, boolean genParams, SecureRandom random) |
119 public void initialize(int modlen, boolean genParams, SecureRandom random) |
120 throws InvalidParameterException; |
120 throws InvalidParameterException; |