public String toStringWithPrivate() {
        StringBuilder b = new StringBuilder();
        b.append(toString());
        if (privKey != null && privKey instanceof BCECPrivateKey) {
            b.append(" priv:").append(Hex.toHexString(((BCECPrivateKey) privKey).getD().toByteArray()));
        }
        return b.toString();
    }
public String toStringWithPrivate ( ) { StringBuilder b = new StringBuilder ( ) ; b . append ( toString ( ) ) ; if ( privKey != null && privKey instanceof BCECPrivateKey ) { b . append ( " priv:" ) . append ( Hex . toHexString ( ( ( BCECPrivateKey ) privKey ) . getD ( ) . toByteArray ( ) ) ) ; } return b . toString ( ) ; }
Produce a string rendering of the ECKey INCLUDING the private key. Unless you
absolutely need the private key it is better for security reasons to just use
toString().


@return -