Interface RulesSource.Builder

    • Method Detail

      • rulesString

        RulesSource.Builder rulesString​(String rulesString)

        Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.

        These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.

        You can't use the priority keyword if the RuleOrder option in StatefulRuleOptions is set to STRICT_ORDER.

        Parameters:
        rulesString - Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.

        These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.

        You can't use the priority keyword if the RuleOrder option in StatefulRuleOptions is set to STRICT_ORDER.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rulesSourceList

        RulesSource.Builder rulesSourceList​(RulesSourceList rulesSourceList)

        Stateful inspection criteria for a domain list rule group.

        Parameters:
        rulesSourceList - Stateful inspection criteria for a domain list rule group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statefulRules

        RulesSource.Builder statefulRules​(Collection<StatefulRule> statefulRules)

        An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.

        Parameters:
        statefulRules - An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statefulRules

        RulesSource.Builder statefulRules​(StatefulRule... statefulRules)

        An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.

        Parameters:
        statefulRules - An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statefulRules

        RulesSource.Builder statefulRules​(Consumer<StatefulRule.Builder>... statefulRules)

        An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.

        This is a convenience method that creates an instance of the StatefulRule.Builder avoiding the need to create one manually via StatefulRule.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #statefulRules(List).

        Parameters:
        statefulRules - a consumer that will call methods on StatefulRule.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #statefulRules(java.util.Collection)
      • statelessRulesAndCustomActions

        RulesSource.Builder statelessRulesAndCustomActions​(StatelessRulesAndCustomActions statelessRulesAndCustomActions)

        Stateless inspection criteria to be used in a stateless rule group.

        Parameters:
        statelessRulesAndCustomActions - Stateless inspection criteria to be used in a stateless rule group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.