/** * Checks the request payload for validity. * * @param payload The payload to check. * @return boolean The result of the check : {@link Boolean#TRUE} if the payload is valid, {@link Boolean#FALSE} otherwise. * @throws NullPointerException If the payload is {@code null}. */ private boolean isValidRequestPayload(final JsonObject payload) { return hasValidAdapterSpec(payload) && hasValidTrustedCaSpec(payload); }