Package com.totvs.tjf.autoconfigure
Class SecurityCorsProperties
- java.lang.Object
-
- com.totvs.tjf.autoconfigure.SecurityCorsProperties
-
@Configuration @ConfigurationProperties(prefix="security.cors") public class SecurityCorsProperties extends Object
Security access properties.
-
-
Constructor Summary
Constructors Constructor Description SecurityCorsProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAllowedHeaders()List<String>getAllowedMethods()List<String>getAllowedOrigins()List<String>getExposedHeaders()StringgetPath()booleanisAllowCredentials()booleanisEnabled()voidsetAllowCredentials(boolean allowCredentials)voidsetAllowedHeaders(List<String> allowedHeaders)voidsetAllowedMethods(List<String> allowedMethods)voidsetAllowedOrigins(List<String> allowedOrigins)voidsetEnabled(boolean enabled)voidsetExposedHeaders(List<String> exposedHeaders)voidsetPath(String path)
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Returns:
- the enabled
-
setEnabled
@Generated public void setEnabled(boolean enabled)
- Parameters:
enabled- the enabled to set
-
setAllowedOrigins
@Generated public void setAllowedOrigins(List<String> allowedOrigins)
- Parameters:
allowedOrigins- the allowedOrigins to set
-
setAllowedMethods
@Generated public void setAllowedMethods(List<String> allowedMethods)
- Parameters:
allowedMethods- the allowedMethods to set
-
setAllowedHeaders
@Generated public void setAllowedHeaders(List<String> allowedHeaders)
- Parameters:
allowedHeaders- the allowedHeaders to set
-
setExposedHeaders
@Generated public void setExposedHeaders(List<String> exposedHeaders)
- Parameters:
exposedHeaders- the exposedHeaders to set
-
isAllowCredentials
public boolean isAllowCredentials()
- Returns:
- the allowCredentials
-
setAllowCredentials
@Generated public void setAllowCredentials(boolean allowCredentials)
- Parameters:
allowCredentials- the allowCredentials to set
-
getPath
public String getPath()
- Returns:
- the path
-
setPath
@Generated public void setPath(String path)
- Parameters:
path- the path to set
-
-