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

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


 133      */
 134     public Object clone() {
 135         try {
 136             return super.clone();
 137         } catch (CloneNotSupportedException e) {
 138             /* Cannot happen */
 139             throw new InternalError(e.toString(), e);
 140         }
 141     }
 142 
 143     /**
 144      * Return a printable representation of this
 145      * {@code PKIXCertPathValidatorResult}.
 146      *
 147      * @return a {@code String} describing the contents of this
 148      *         {@code PKIXCertPathValidatorResult}
 149      */
 150     public String toString() {
 151         StringBuilder sb = new StringBuilder();
 152         sb.append("PKIXCertPathValidatorResult: [\n");
 153         sb.append("  Trust Anchor: " + trustAnchor.toString() + "\n");
 154         sb.append("  Policy Tree: " + String.valueOf(policyTree) + "\n");
 155         sb.append("  Subject Public Key: " + subjectPublicKey + "\n");
 156         sb.append("]");
 157         return sb.toString();
 158     }
 159 }


 133      */
 134     public Object clone() {
 135         try {
 136             return super.clone();
 137         } catch (CloneNotSupportedException e) {
 138             /* Cannot happen */
 139             throw new InternalError(e.toString(), e);
 140         }
 141     }
 142 
 143     /**
 144      * Return a printable representation of this
 145      * {@code PKIXCertPathValidatorResult}.
 146      *
 147      * @return a {@code String} describing the contents of this
 148      *         {@code PKIXCertPathValidatorResult}
 149      */
 150     public String toString() {
 151         StringBuilder sb = new StringBuilder();
 152         sb.append("PKIXCertPathValidatorResult: [\n");
 153         sb.append("  Trust Anchor: ").append(trustAnchor).append('\n');
 154         sb.append("  Policy Tree: ").append(policyTree).append('\n');
 155         sb.append("  Subject Public Key: ").append(subjectPublicKey).append('\n');
 156         sb.append(']');
 157         return sb.toString();
 158     }
 159 }