/** * Checks if the DistinguishedNamesLength has a value greater than Zero * * @param message * Message to check * @return True if the field has a value greater than Zero */ private boolean hasDistinguishedNamesLength(CertificateRequestMessage msg) { return msg.getDistinguishedNamesLength().getValue() != 0; }
private boolean hasDistinguishedNames(CertificateRequestMessage msg) { return msg.getDistinguishedNamesLength().getValue() != 0; }
/** * Writes the DiestinguishedNamesLength of the CertificateRequestMessage * into the final byte[] */ private void writeDistinguishedNamesLength(CertificateRequestMessage msg) { appendInt(msg.getDistinguishedNamesLength().getValue(), HandshakeByteLength.DISTINGUISHED_NAMES_LENGTH); LOGGER.debug("DistinguishedNamesLength: " + msg.getDistinguishedNamesLength().getValue()); }
/** * Reads the next bytes as the DistinguishedNamesLength and writes them in * the message * * @param msg * Message to write in */ private void parseDistinguishedNamesLength(CertificateRequestMessage msg) { msg.setDistinguishedNamesLength(parseIntField(HandshakeByteLength.DISTINGUISHED_NAMES_LENGTH)); LOGGER.debug("DistinguishedNamesLength: " + msg.getDistinguishedNamesLength().getValue()); }
private void prepareDistinguishedNamesLength(CertificateRequestMessage msg) { msg.setDistinguishedNamesLength(msg.getDistinguishedNames().getValue().length); LOGGER.debug("DistinguishedNamesLength: " + msg.getDistinguishedNamesLength().getValue()); }
/** * Reads the next bytes as the DistinguishedNames and writes them in the * message * * @param msg * Message to write in */ private void parseDistinguishedNames(CertificateRequestMessage msg) { msg.setDistinguishedNames(parseByteArrayField(msg.getDistinguishedNamesLength().getValue())); LOGGER.debug("DistinguishedNames: " + ArrayConverter.bytesToHexString(msg.getDistinguishedNames().getValue())); }