equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 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 |
24 */ |
24 */ |
25 |
25 |
26 package java.security.spec; |
26 package java.security.spec; |
27 |
27 |
28 import java.util.Objects; |
28 import java.util.Objects; |
29 import java.security.spec.MGF1ParameterSpec; |
|
30 |
29 |
31 /** |
30 /** |
32 * This class specifies a parameter spec for RSASSA-PSS signature scheme, |
31 * This class specifies a parameter spec for RSASSA-PSS signature scheme, |
33 * as defined in the |
32 * as defined in the |
34 * <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard. |
33 * <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard. |
216 * @since 1.5 |
215 * @since 1.5 |
217 */ |
216 */ |
218 public int getTrailerField() { |
217 public int getTrailerField() { |
219 return trailerField; |
218 return trailerField; |
220 } |
219 } |
|
220 |
|
221 @Override |
|
222 public String toString() { |
|
223 StringBuilder sb = new StringBuilder(); |
|
224 sb.append("MD: " + mdName + "\n") |
|
225 .append("MGF: " + mgfSpec + "\n") |
|
226 .append("SaltLength: " + saltLen + "\n") |
|
227 .append("TrailerField: " + trailerField + "\n"); |
|
228 return sb.toString(); |
|
229 } |
221 } |
230 } |