Class ProtectionCapabilitySettings.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • maxNumberOfArguments

        public ProtectionCapabilitySettings.Builder maxNumberOfArguments​(Integer maxNumberOfArguments)
        Maximum number of arguments allowed.

        Used in protection capability 920380: Number of Arguments Limits.

        Parameters:
        maxNumberOfArguments - the value to set
        Returns:
        this builder
      • maxSingleArgumentLength

        public ProtectionCapabilitySettings.Builder maxSingleArgumentLength​(Integer maxSingleArgumentLength)
        Maximum allowed length of a single argument.

        Used in protection capability 920370: Limit argument value length.

        Parameters:
        maxSingleArgumentLength - the value to set
        Returns:
        this builder
      • maxTotalArgumentLength

        public ProtectionCapabilitySettings.Builder maxTotalArgumentLength​(Integer maxTotalArgumentLength)
        Maximum allowed total length of all arguments.

        Used in protection capability 920390: Limit arguments total length.

        Parameters:
        maxTotalArgumentLength - the value to set
        Returns:
        this builder
      • maxHttpRequestHeaders

        public ProtectionCapabilitySettings.Builder maxHttpRequestHeaders​(Integer maxHttpRequestHeaders)
        Maximum number of headers allowed in an HTTP request.

        Used in protection capability 9200014: Limit Number of Request Headers.

        Parameters:
        maxHttpRequestHeaders - the value to set
        Returns:
        this builder
      • maxHttpRequestHeaderLength

        public ProtectionCapabilitySettings.Builder maxHttpRequestHeaderLength​(Integer maxHttpRequestHeaderLength)
        Maximum allowed length of headers in an HTTP request.

        Used in protection capability: 9200024: Limit length of request header size.

        Parameters:
        maxHttpRequestHeaderLength - the value to set
        Returns:
        this builder
      • allowedHttpMethods

        public ProtectionCapabilitySettings.Builder allowedHttpMethods​(List<String> allowedHttpMethods)
        List of allowed HTTP methods.

        Each value as a RFC7230 formated token string. Used in protection capability 911100: Restrict HTTP Request Methods.

        Parameters:
        allowedHttpMethods - the value to set
        Returns:
        this builder