public String toString(){
  StringBuilder sb=new StringBuilder();
  sb.append("Private key entry and certificate chain with " + chain.length + " elements:\r\n");
  for (  Certificate cert : chain) {
    sb.append(cert);
    sb.append("\r\n");
  }
  return sb.toString();
}

public String toString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "Private key entry and certificate chain with " + chain . length + " elements:\r\n" ) ; for ( Certificate cert : chain ) { sb . append ( cert ) ; sb . append ( "\r\n" ) ; } return sb . toString ( ) ; }
returns a string representation of this privatekeyentry .
