/** * This method returns a string representation of the current object. The output is only for * debugging purposes and should not be used for other purposes. * * @return A string presentation of this object for debugging output. * @preconditions * @postconditions (result <> null) */ public String toString() { StringBuffer buffer = new StringBuffer(1024); buffer.append(super.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Prime (hex): "); buffer.append(prime_.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Base (hex): "); buffer.append(base_.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Value (hex): "); buffer.append(value_.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Value Bits (dec): "); buffer.append(valueBits_.toString(10)); return buffer.toString(); }
/** * This method returns a string representation of the current object. The output is only for * debugging purposes and should not be used for other purposes. * * @return A string presentation of this object for debugging output. * @preconditions * @postconditions (result <> null) */ public String toString() { StringBuffer buffer = new StringBuffer(256); buffer.append(super.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Key Type: "); if (keyType_ != null) { buffer.append(keyType_.toString()); } else { buffer.append("<unavailable>"); } buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("ID: "); buffer.append(id_.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Start Date: "); buffer.append(startDate_.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("End Date: "); buffer.append(endDate_.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Derive: "); buffer.append(derive_.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Local: "); buffer.append(local_.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Key Generation Mechanism: "); buffer.append(keyGenMechanism_.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Allowed Mechanisms: "); buffer.append(allowedMechanisms_.toString()); return buffer.toString(); }
/** * This method returns a string representation of the current object. The output is only for * debugging purposes and should not be used for other purposes. * * @return A string presentation of this object for debugging output. * @preconditions * @postconditions (result <> null) */ public String toString() { StringBuffer buffer = new StringBuffer(1024); buffer.append(super.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Value (hex): "); buffer.append(value_.toString()); buffer.append(Constants.NEWLINE); buffer.append(Constants.INDENT); buffer.append("Value Length (dec): "); buffer.append(valueLen_.toString(10)); return buffer.toString(); }
/** * The overriding of this method should ensure that the objects of this class work correctly in a * hashtable. * * @return The hash code of this object. * @preconditions * @postconditions */ public int hashCode() { return keyType_.hashCode() ^ id_.hashCode(); }