@Test public void testToString() { StringBuilder sb = new StringBuilder(); sb.append("SrpServerKeyExchangeMessage:"); sb.append("\n Modulus p: ").append("null"); sb.append("\n Generator g: ").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()); }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("SrpServerKeyExchangeMessage:"); sb.append("\n Modulus p: "); if (modulus != null && modulus.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(modulus.getValue())); } else { sb.append("null"); } sb.append("\n Generator g: "); if (generator != null && generator.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(generator.getValue())); } else { sb.append("null"); } sb.append("\n Public Key: "); if (getPublicKey() != null && getPublicKey().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(getPublicKey().getValue(), false)); } 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 (this.getSignature() != null && getSignature().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(this.getSignature().getValue())); } else { sb.append("null"); } return sb.toString(); }
SrpServerKeyExchangeMessage extends ServerKeyExchangeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("SrpServerKeyExchangeMessage:"); sb.append("\n Modulus p: "); if (modulus != null && modulus.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(modulus.getValue())); } else { sb.append("null"); } sb.append("\n Generator g: "); if (generator != null && generator.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(generator.getValue())); } else { sb.append("null"); } sb.append("\n Public Key: "); if (getPublicKey() != null && getPublicKey().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(getPublicKey().getValue(), false)); } 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 (this.getSignature() != null && getSignature().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(this.getSignature().getValue())); } else { sb.append("null"); } return sb.toString(); } }
SrpServerKeyExchangeMessage extends ServerKeyExchangeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("SrpServerKeyExchangeMessage:"); sb.append("\n Modulus p: "); if (modulus != null && modulus.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(modulus.getValue())); } else { sb.append("null"); } sb.append("\n Generator g: "); if (generator != null && generator.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(generator.getValue())); } else { sb.append("null"); } sb.append("\n Public Key: "); if (getPublicKey() != null && getPublicKey().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(getPublicKey().getValue(), false)); } 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 (this.getSignature() != null && getSignature().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(this.getSignature().getValue())); } else { sb.append("null"); } return sb.toString(); } SrpServerKeyExchangeMessage();  SrpServerKeyExchangeMessage(Config tlsConfig); }
SrpServerKeyExchangeMessage extends ServerKeyExchangeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("SrpServerKeyExchangeMessage:"); sb.append("\n Modulus p: "); if (modulus != null && modulus.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(modulus.getValue())); } else { sb.append("null"); } sb.append("\n Generator g: "); if (generator != null && generator.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(generator.getValue())); } else { sb.append("null"); } sb.append("\n Public Key: "); if (getPublicKey() != null && getPublicKey().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(getPublicKey().getValue(), false)); } 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 (this.getSignature() != null && getSignature().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(this.getSignature().getValue())); } else { sb.append("null"); } return sb.toString(); } SrpServerKeyExchangeMessage();  SrpServerKeyExchangeMessage(Config tlsConfig); ModifiableByteArray getModulus(); void setModulus(ModifiableByteArray modulus); void setModulus(byte[] modulus); ModifiableByteArray getSalt(); void setSalt(ModifiableByteArray salt); void setSalt(byte[] salt); ModifiableInteger getSaltLength(); void setSaltLength(ModifiableInteger saltLength); void setSaltLength(int saltLength); ModifiableByteArray getGenerator(); void setGenerator(ModifiableByteArray generator); void setGenerator(byte[] generator); ModifiableInteger getModulusLength(); void setModulusLength(ModifiableInteger modulusLength); void setModulusLength(int modulusLength); ModifiableInteger getGeneratorLength(); void setGeneratorLength(ModifiableInteger generatorLength); void setGeneratorLength(int generatorLength); @Override SRPServerComputations getComputations(); @Override String toString(); @Override ProtocolMessageHandler getHandler(TlsContext context); @Override String toCompactString(); @Override void prepareComputations(); @Override List<ModifiableVariableHolder> getAllModifiableVariableHolders(); }
SrpServerKeyExchangeMessage extends ServerKeyExchangeMessage { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("SrpServerKeyExchangeMessage:"); sb.append("\n Modulus p: "); if (modulus != null && modulus.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(modulus.getValue())); } else { sb.append("null"); } sb.append("\n Generator g: "); if (generator != null && generator.getValue() != null) { sb.append(ArrayConverter.bytesToHexString(generator.getValue())); } else { sb.append("null"); } sb.append("\n Public Key: "); if (getPublicKey() != null && getPublicKey().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(getPublicKey().getValue(), false)); } 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 (this.getSignature() != null && getSignature().getValue() != null) { sb.append(ArrayConverter.bytesToHexString(this.getSignature().getValue())); } else { sb.append("null"); } return sb.toString(); } SrpServerKeyExchangeMessage();  SrpServerKeyExchangeMessage(Config tlsConfig); ModifiableByteArray getModulus(); void setModulus(ModifiableByteArray modulus); void setModulus(byte[] modulus); ModifiableByteArray getSalt(); void setSalt(ModifiableByteArray salt); void setSalt(byte[] salt); ModifiableInteger getSaltLength(); void setSaltLength(ModifiableInteger saltLength); void setSaltLength(int saltLength); ModifiableByteArray getGenerator(); void setGenerator(ModifiableByteArray generator); void setGenerator(byte[] generator); ModifiableInteger getModulusLength(); void setModulusLength(ModifiableInteger modulusLength); void setModulusLength(int modulusLength); ModifiableInteger getGeneratorLength(); void setGeneratorLength(ModifiableInteger generatorLength); void setGeneratorLength(int generatorLength); @Override SRPServerComputations getComputations(); @Override String toString(); @Override ProtocolMessageHandler getHandler(TlsContext context); @Override String toCompactString(); @Override void prepareComputations(); @Override List<ModifiableVariableHolder> getAllModifiableVariableHolders();  }