equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, 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 |
127 |
127 |
128 /* |
128 /* |
129 * Returns a formatted string describing the parameters. |
129 * Returns a formatted string describing the parameters. |
130 */ |
130 */ |
131 protected String engineToString() { |
131 protected String engineToString() { |
132 String LINE_SEP = System.getProperty("line.separator"); |
132 String LINE_SEP = System.lineSeparator(); |
133 |
133 |
134 StringBuilder sb |
134 StringBuilder sb |
135 = new StringBuilder("SunJCE Diffie-Hellman Parameters:" |
135 = new StringBuilder("SunJCE Diffie-Hellman Parameters:" |
136 + LINE_SEP + "p:" + LINE_SEP |
136 + LINE_SEP + "p:" + LINE_SEP |
137 + Debug.toHexString(this.p) |
137 + Debug.toHexString(this.p) |