src/java.base/share/classes/java/security/cert/PKIXBuilderParameters.java

Print this page
rev 10537 : 8055723[core]: Replace concat String to append in StringBuilder parameters
Contributed-by: Otavio Santana <otaviojava@java.net>


 175      * the {@link #setMaxPathLength} method for more details.
 176      *
 177      * @return the maximum number of non-self-issued intermediate certificates
 178      *  that may exist in a certification path, or -1 if there is no limit
 179      *
 180      * @see #setMaxPathLength
 181      */
 182     public int getMaxPathLength() {
 183         return maxPathLength;
 184     }
 185 
 186     /**
 187      * Returns a formatted string describing the parameters.
 188      *
 189      * @return a formatted string describing the parameters
 190      */
 191     public String toString() {
 192         StringBuilder sb = new StringBuilder();
 193         sb.append("[\n");
 194         sb.append(super.toString());
 195         sb.append("  Maximum Path Length: " + maxPathLength + "\n");
 196         sb.append("]\n");
 197         return sb.toString();
 198     }
 199 }


 175      * the {@link #setMaxPathLength} method for more details.
 176      *
 177      * @return the maximum number of non-self-issued intermediate certificates
 178      *  that may exist in a certification path, or -1 if there is no limit
 179      *
 180      * @see #setMaxPathLength
 181      */
 182     public int getMaxPathLength() {
 183         return maxPathLength;
 184     }
 185 
 186     /**
 187      * Returns a formatted string describing the parameters.
 188      *
 189      * @return a formatted string describing the parameters
 190      */
 191     public String toString() {
 192         StringBuilder sb = new StringBuilder();
 193         sb.append("[\n");
 194         sb.append(super.toString());
 195         sb.append("  Maximum Path Length: ").append(maxPathLength).append('\n');
 196         sb.append("]\n");
 197         return sb.toString();
 198     }
 199 }