Class SecurityTokenFilterSettings

java.lang.Object
net.solarnetwork.central.security.config.SecurityTokenFilterSettings

public class SecurityTokenFilterSettings extends Object
Configurable settings for security token filters.
  • Field Details

    • DEFALUT_MAX_DATE_SKEW

      public static final long DEFALUT_MAX_DATE_SKEW
      The maxDateSkew property default value.
      See Also:
    • DEFAULT_MAX_REQUEST_BODY_SIZE

      public static final org.springframework.util.unit.DataSize DEFAULT_MAX_REQUEST_BODY_SIZE
      The maxRequestBodySize property default value.
    • DEFAULT_MINIMUM_COMPRESS_LENGTH

      public static final org.springframework.util.unit.DataSize DEFAULT_MINIMUM_COMPRESS_LENGTH
      The minimumCompressLength property default value.
    • DEFAULT_MINIMUM_SPOOL_LENGTH

      public static final org.springframework.util.unit.DataSize DEFAULT_MINIMUM_SPOOL_LENGTH
      The minimumSpoolLength property default value.
    • DEFAULT_SPOOL_DIRECTORY

      public static final Path DEFAULT_SPOOL_DIRECTORY
      The spoolDirectory property default value.
  • Constructor Details

    • SecurityTokenFilterSettings

      public SecurityTokenFilterSettings()
  • Method Details

    • getMaxDateSkew

      public long getMaxDateSkew()
      Get the maximum date skew.
      Returns:
      the maximum date skew, in milliseconds; defaults to DEFALUT_MAX_DATE_SKEW
    • setMaxDateSkew

      public void setMaxDateSkew(long maxDateSkew)
      Set the maximum date skew.
      Parameters:
      maxDateSkew - the maximum date skew, in milliseconds
    • getMaxRequestBodySize

      public org.springframework.util.unit.DataSize getMaxRequestBodySize()
      Get the maximum request body size.
      Returns:
      the maximum size, never null ; defaults to DEFAULT_MAX_REQUEST_BODY_SIZE
    • setMaxRequestBodySize

      public void setMaxRequestBodySize(org.springframework.util.unit.DataSize maxRequestBodySize)
      Set the maximum request body size.
      Parameters:
      maxRequestBodySize - the maximum size to set; if null then DEFAULT_MAX_REQUEST_BODY_SIZE will be set
    • getMinimumCompressLength

      public org.springframework.util.unit.DataSize getMinimumCompressLength()
      Get the minimum content length before compression can be used.
      Returns:
      the length; defaults to DEFAULT_MINIMUM_COMPRESS_LENGTH
    • setMinimumCompressLength

      public void setMinimumCompressLength(org.springframework.util.unit.DataSize minimumCompressLength)
      Set the minimum content length before compression can be used.
      Parameters:
      minimumCompressLength - the length to set
    • getCompressibleContentTypePattern

      public Pattern getCompressibleContentTypePattern()
      Get a pattern of compressible content types.
      Returns:
      the pattern; defaults to SecurityHttpServletRequestWrapper.DEFAULT_COMPRESSIBLE_CONTENT_PATTERN
    • setCompressibleContentTypePattern

      public void setCompressibleContentTypePattern(Pattern compressibleContentTypePattern)
      Set a pattern of compressible content types.
      Parameters:
      compressibleContentTypePattern - the pattern to set
    • getMinimumSpoolLength

      public org.springframework.util.unit.DataSize getMinimumSpoolLength()
      Get the minimum content length before spooling to disk is allowed.
      Returns:
      the length; defaults to DEFAULT_MINIMUM_SPOOL_LENGTH
    • setMinimumSpoolLength

      public void setMinimumSpoolLength(org.springframework.util.unit.DataSize minimumSpoolLength)
      Set the minimum content length before spooling to disk is allowed.
      Parameters:
      minimumSpoolLength - the length to set
    • getSpoolDirectory

      public Path getSpoolDirectory()
      Get the directory to create temporary spool files.
      Returns:
      the directory; defaults to a DEFAULT_SPOOL_DIRECTORY
    • setSpoolDirectory

      public void setSpoolDirectory(Path spoolDirectory)
      Set the directory to create temporary spool files.
      Parameters:
      spoolDirectory - the directory to set