/** * Writes the SignatureHandshakeAlgorithmsLength of the * CertificateRequestMessage into the final byte[] */ private void writeSignatureHandshakeAlgorithmsLength(CertificateRequestMessage msg) { appendInt(msg.getSignatureHashAlgorithmsLength().getValue(), HandshakeByteLength.SIGNATURE_HASH_ALGORITHMS_LENGTH); LOGGER.debug("SignatureHashAlgorithmsLength: " + msg.getSignatureHashAlgorithmsLength().getValue()); }
/** * Reads the next bytes as the SignatureHashAlgorithmsLength and writes them * in the message * * @param msg * Message to write in */ private void parseSignatureHashAlgorithmsLength(CertificateRequestMessage msg) { msg.setSignatureHashAlgorithmsLength(parseIntField(HandshakeByteLength.SIGNATURE_HASH_ALGORITHMS_LENGTH)); LOGGER.debug("SignatureHashAlgorithmsLength: " + msg.getSignatureHashAlgorithmsLength().getValue()); }
private void prepareSignatureHashAlgorithmsLength(CertificateRequestMessage msg) { msg.setSignatureHashAlgorithmsLength(msg.getSignatureHashAlgorithms().getValue().length); LOGGER.debug("SignatureHashAlgorithmsLength: " + msg.getSignatureHashAlgorithmsLength().getValue()); }
/** * Reads the next bytes as the SignatureHashAlgorithms and writes them in * the message * * @param msg * Message to write in */ private void parseSignatureHashAlgorithms(CertificateRequestMessage message) { message.setSignatureHashAlgorithms(parseByteArrayField(message.getSignatureHashAlgorithmsLength().getValue())); LOGGER.debug("SignatureHashAlgorithms: " + ArrayConverter.bytesToHexString(message.getSignatureHashAlgorithms().getValue())); }