예제 #1
0
 /** Returns a printable representation of the CRLNumberExtension. */
 public String toString() {
   String s =
       super.toString()
           + extensionLabel
           + ": "
           + ((crlNumber == null) ? "" : Debug.toHexString(crlNumber))
           + "\n";
   return (s);
 }
예제 #2
0
  public String toString() {
    String LINE_SEP = System.getProperty("line.separator");

    StringBuffer strbuf =
        new StringBuffer(
            "SunJCE Diffie-Hellman Public Key:"
                + LINE_SEP
                + "y:"
                + LINE_SEP
                + Debug.toHexString(this.y)
                + LINE_SEP
                + "p:"
                + LINE_SEP
                + Debug.toHexString(this.p)
                + LINE_SEP
                + "g:"
                + LINE_SEP
                + Debug.toHexString(this.g));
    if (this.l != 0) strbuf.append(LINE_SEP + "l:" + LINE_SEP + "    " + this.l);
    return strbuf.toString();
  }