vertx / io.vertx.kotlin.ext.bridge / PermittedOptions

PermittedOptions

fun PermittedOptions(address: String? = null, addressRegex: String? = null, match: JsonObject? = null, requiredAuthority: String? = null): PermittedOptions

A function providing a DSL for building io.vertx.ext.bridge.PermittedOptions objects.

Represents a match to allow for inbound and outbound traffic.

Parameters

address - The exact address the message is being sent to. If you want to allow messages based on an exact address you use this field.

addressRegex - A regular expression that will be matched against the address. If you want to allow messages based on a regular expression you use this field. If the io.vertx.ext.bridge.PermittedOptions value is specified this will be ignored.

match - This allows you to allow messages based on their structure. Any fields in the match must exist in the message with the same values for them to be allowed. This currently only works with JSON messages.

requiredAuthority - Declare a specific authority that user must have in order to allow messages