@Override protected CertificateVerifyMessage createHandshakeMessage() { return new CertificateVerifyMessage(); }
private void prepareSignatureLength(CertificateVerifyMessage msg) { msg.setSignatureLength(msg.getSignature().getValue().length); LOGGER.debug("SignatureLength: " + msg.getSignatureLength().getValue()); }
/** * Reads the next bytes as the Signature and writes them in the message * * @param msg * Message to write in */ private void parseSignature(CertificateVerifyMessage msg) { msg.setSignature(parseByteArrayField(msg.getSignatureLength().getValue())); LOGGER.debug("Signatur: " + ArrayConverter.bytesToHexString(msg.getSignature().getValue())); }
/** * Reads the next bytes as the SignatureLength and writes them in the * message * * @param msg * Message to write in */ private void parseSignatureLength(CertificateVerifyMessage msg) { msg.setSignatureLength(parseIntField(HandshakeByteLength.SIGNATURE_LENGTH)); LOGGER.debug("SignatureLength: " + msg.getSignatureLength().getValue()); }
private void prepareSignature(CertificateVerifyMessage msg) { msg.setSignature(signature); LOGGER.debug("Signature: " + ArrayConverter.bytesToHexString(msg.getSignature().getValue())); }
private void prepareSignatureHashAlgorithm(CertificateVerifyMessage msg) { msg.setSignatureHashAlgorithm(algorithm.getByteValue()); LOGGER.debug("SignatureHasAlgorithm: " + ArrayConverter.bytesToHexString(msg.getSignatureHashAlgorithm().getValue())); } }
/** * Writes the SignatureLength of the CertificateVerifyMessage into the final * byte[] */ private void writeSignatureLength(CertificateVerifyMessage msg) { appendInt(msg.getSignatureLength().getValue(), HandshakeByteLength.SIGNATURE_LENGTH); LOGGER.debug("SignatureLength: " + msg.getSignatureLength().getValue()); }
/** * Writes the Signature of the CertificateVerifyMessage into the final * byte[] */ private void writeSignature(CertificateVerifyMessage msg) { appendBytes(msg.getSignature().getValue()); LOGGER.debug("Signature: " + ArrayConverter.bytesToHexString(msg.getSignature().getValue())); }
/** * Writes the SignatureHashAlgorithm of the CertificateVerifyMessage into * the final byte[] */ private void writeSignatureHashAlgorithm(CertificateVerifyMessage msg) { appendBytes(msg.getSignatureHashAlgorithm().getValue()); LOGGER.debug("SignatureHashAlgorithms: " + ArrayConverter.bytesToHexString(msg.getSignatureHashAlgorithm().getValue())); }
/** * Reads the next bytes as the SignatureHashAlgorithm and writes them in the * message * * @param msg * Message to write in */ private void parseSignatureHashAlgorithm(CertificateVerifyMessage msg) { msg.setSignatureHashAlgorithm(parseByteArrayField(HandshakeByteLength.SIGNATURE_HASH_ALGORITHM)); LOGGER.debug("SignatureHashAlgorithm: " + ArrayConverter.bytesToHexString(msg.getSignatureHashAlgorithm().getValue())); }
if (config.isClientAuthentication()) { messages.add(new CertificateMessage(config)); messages.add(new CertificateVerifyMessage(config)); messages.add(new CertificateMessage(config)); addClientKeyExchangeMessage(messages); messages.add(new CertificateVerifyMessage(config)); } else { addClientKeyExchangeMessage(messages);
messages.add(new CertificateMessage(config)); messages.add(new CertificateVerifyMessage(config)); messages.add(new FinishedMessage(config)); } else {