Package com.totvs.tjf.autoconfigure
Class SecurityCsrfProperties
java.lang.Object
com.totvs.tjf.autoconfigure.SecurityCsrfProperties
- Direct Known Subclasses:
SecurityCsrfPropertiesDeprecated
@Configuration
@ConfigurationProperties(prefix="tjf.security.csrf")
@ConditionalOnExpression("environment.getProperty(\'tjf.security.csrf.enable\') != null || environment.getProperty(\'tjf.security.csrf.disable-for-paths[0]\') != null")
public class SecurityCsrfProperties
extends Object
Security access properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
boolean
boolean
isEnable()
void
setDisableForPaths
(String[] disableForPaths) void
setEnable
(boolean enable)
-
Constructor Details
-
SecurityCsrfProperties
public SecurityCsrfProperties()
-
-
Method Details
-
isEnable
public boolean isEnable()- Returns:
- the enable
-
setEnable
- Parameters:
enable
- the enable to set
-
getDisableForPaths
- Returns:
- the disable for paths
-
setDisableForPaths
- Parameters:
disableForPaths
- the disable for paths to set
-
hasDisableForPaths
public boolean hasDisableForPaths()- Returns:
- the has disable for paths
-