Class SecurityTokenFilterSettings
java.lang.Object
net.solarnetwork.central.security.config.SecurityTokenFilterSettings
Configurable settings for security token filters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longThemaxDateSkewproperty default value.static final org.springframework.util.unit.DataSizeThemaxRequestBodySizeproperty default value.static final org.springframework.util.unit.DataSizeTheminimumCompressLengthproperty default value.static final org.springframework.util.unit.DataSizeTheminimumSpoolLengthproperty default value.static final PathThespoolDirectoryproperty default value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a pattern of compressible content types.longGet the maximum date skew.org.springframework.util.unit.DataSizeGet the maximum request body size.org.springframework.util.unit.DataSizeGet the minimum content length before compression can be used.org.springframework.util.unit.DataSizeGet the minimum content length before spooling to disk is allowed.Get the directory to create temporary spool files.voidsetCompressibleContentTypePattern(Pattern compressibleContentTypePattern) Set a pattern of compressible content types.voidsetMaxDateSkew(long maxDateSkew) Set the maximum date skew.voidsetMaxRequestBodySize(org.springframework.util.unit.DataSize maxRequestBodySize) Set the maximum request body size.voidsetMinimumCompressLength(org.springframework.util.unit.DataSize minimumCompressLength) Set the minimum content length before compression can be used.voidsetMinimumSpoolLength(org.springframework.util.unit.DataSize minimumSpoolLength) Set the minimum content length before spooling to disk is allowed.voidsetSpoolDirectory(Path spoolDirectory) Set the directory to create temporary spool files.
-
Field Details
-
DEFALUT_MAX_DATE_SKEW
public static final long DEFALUT_MAX_DATE_SKEWThemaxDateSkewproperty default value.- See Also:
-
DEFAULT_MAX_REQUEST_BODY_SIZE
public static final org.springframework.util.unit.DataSize DEFAULT_MAX_REQUEST_BODY_SIZEThemaxRequestBodySizeproperty default value. -
DEFAULT_MINIMUM_COMPRESS_LENGTH
public static final org.springframework.util.unit.DataSize DEFAULT_MINIMUM_COMPRESS_LENGTHTheminimumCompressLengthproperty default value. -
DEFAULT_MINIMUM_SPOOL_LENGTH
public static final org.springframework.util.unit.DataSize DEFAULT_MINIMUM_SPOOL_LENGTHTheminimumSpoolLengthproperty default value. -
DEFAULT_SPOOL_DIRECTORY
ThespoolDirectoryproperty 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 thenDEFAULT_MAX_REQUEST_BODY_SIZEwill 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
Get a pattern of compressible content types.- Returns:
- the pattern; defaults to
SecurityHttpServletRequestWrapper.DEFAULT_COMPRESSIBLE_CONTENT_PATTERN
-
setCompressibleContentTypePattern
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
Get the directory to create temporary spool files.- Returns:
- the directory; defaults to a
DEFAULT_SPOOL_DIRECTORY
-
setSpoolDirectory
Set the directory to create temporary spool files.- Parameters:
spoolDirectory- the directory to set
-