ECDHEServerKeyExchangeMessage extends ServerKeyExchangeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("ECDHEServerKeyExchangeMessage:"); sb.append("\n Curve Type: "); if (curveType != null && curveType.getValue() != null) { sb.append(EllipticCurveType.getCurveType(this.curveType.getValue())); } else { sb.append("null"); } sb.append("\n Named Curve: "); if (namedGroup != null && namedGroup.getValue() != null) { sb.append(NamedGroup.getNamedGroup(this.namedGroup.getValue())); } else { sb.append("null"); } sb.append("\n Public Key: "); if (getPublicKey() != null && getPublicKey().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(getPublicKey().getValue())); } else { sb.append("null"); } sb.append("\n Signature and Hash Algorithm: "); if (this.getSignatureAndHashAlgorithm() != null && getSignatureAndHashAlgorithm().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(getSignatureAndHashAlgorithm().getValue())); } else { sb.append("null"); } sb.append("\n Signature: "); if (getSignature() != null && getSignature().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(getSignature().getValue())); } else { sb.append("null"); } return sb.toString(); } ECDHEServerKeyExchangeMessage();  ECDHEServerKeyExchangeMessage(Config tlsConfig); ModifiableByte getGroupType(); void setCurveType(ModifiableByte curveType); void setCurveType(byte curveType); ModifiableByteArray getNamedGroup(); void setNamedGroup(ModifiableByteArray namedGroup); void setNamedGroup(byte[] namedGroup); @Override String toString(); @Override ECDHEServerComputations getComputations(); @Override ProtocolMessageHandler getHandler(TlsContext context); @Override String toCompactString(); @Override void prepareComputations(); @Override List<ModifiableVariableHolder> getAllModifiableVariableHolders();  }
@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("ECDHEServerKeyExchangeMessage:"); sb.append("\n Curve Type: ").append("null"); sb.append("\n Named Curve: ").append("null"); sb.append("\n Public Key: ").append("null"); sb.append("\n Signature and Hash Algorithm: ").append("null"); sb.append("\n Signature: ").append("null"); assertEquals(message.toString(), sb.toString()); }