类 SecurityProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.security.SecurityProperties
- 所有已实现的接口:
SecurityPrerequisite
@ConfigurationProperties(prefix="security") public class SecurityProperties extends Object implements SecurityPrerequisite
Properties for the security aspects of an application.
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
SecurityProperties.Basic
static class
SecurityProperties.Headers
static class
SecurityProperties.User
字段概要
字段 修饰符和类型 字段 说明 static int
ACCESS_OVERRIDE_ORDER
Order before the basic authentication access control provided by Boot.static int
BASIC_AUTH_ORDER
Order applied to the WebSecurityConfigurerAdapter that is used to configure basic authentication for application endpoints.static int
DEFAULT_FILTER_ORDER
Default order of Spring Security's Filter in the servlet container (i.e. amongst other filters registered with the container).static int
IGNORED_ORDER
Order applied to the WebSecurityConfigurer that ignores standard static resource paths.
构造器概要
构造器 构造器 说明 SecurityProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SecurityProperties.Basic
getBasic()
Set<String>
getFilterDispatcherTypes()
int
getFilterOrder()
SecurityProperties.Headers
getHeaders()
List<String>
getIgnored()
org.springframework.security.config.http.SessionCreationPolicy
getSessions()
SecurityProperties.User
getUser()
boolean
isEnableCsrf()
boolean
isRequireSsl()
void
setBasic(SecurityProperties.Basic basic)
void
setEnableCsrf(boolean enableCsrf)
void
setFilterDispatcherTypes(Set<String> filterDispatcherTypes)
void
setFilterOrder(int filterOrder)
void
setIgnored(List<String> ignored)
void
setRequireSsl(boolean requireSsl)
void
setSessions(org.springframework.security.config.http.SessionCreationPolicy sessions)
字段详细资料
ACCESS_OVERRIDE_ORDER
public static final int ACCESS_OVERRIDE_ORDER
Order before the basic authentication access control provided by Boot. This is a useful place to put user-defined access rules if you want to override the default access rules.- 另请参阅:
- 常量字段值
BASIC_AUTH_ORDER
public static final int BASIC_AUTH_ORDER
Order applied to the WebSecurityConfigurerAdapter that is used to configure basic authentication for application endpoints. If you want to add your own authentication for all or some of those endpoints the best thing to do is to add your own WebSecurityConfigurerAdapter with lower order.- 另请参阅:
- 常量字段值
IGNORED_ORDER
public static final int IGNORED_ORDER
Order applied to the WebSecurityConfigurer that ignores standard static resource paths.- 另请参阅:
- 常量字段值
DEFAULT_FILTER_ORDER
public static final int DEFAULT_FILTER_ORDER
Default order of Spring Security's Filter in the servlet container (i.e. amongst other filters registered with the container). There is no connection between this and the@Order
on a WebSecurityConfigurer.- 另请参阅:
- 常量字段值
构造器详细资料
SecurityProperties
public SecurityProperties()
方法详细资料
getHeaders
public SecurityProperties.Headers getHeaders()
getUser
public SecurityProperties.User getUser()
getSessions
public org.springframework.security.config.http.SessionCreationPolicy getSessions()
setSessions
public void setSessions(org.springframework.security.config.http.SessionCreationPolicy sessions)
getBasic
public SecurityProperties.Basic getBasic()
setBasic
public void setBasic(SecurityProperties.Basic basic)
isRequireSsl
public boolean isRequireSsl()
setRequireSsl
public void setRequireSsl(boolean requireSsl)
isEnableCsrf
public boolean isEnableCsrf()
setEnableCsrf
public void setEnableCsrf(boolean enableCsrf)
setIgnored
public void setIgnored(List<String> ignored)
getIgnored
public List<String> getIgnored()
getFilterOrder
public int getFilterOrder()
setFilterOrder
public void setFilterOrder(int filterOrder)
getFilterDispatcherTypes
public Set<String> getFilterDispatcherTypes()
setFilterDispatcherTypes
public void setFilterDispatcherTypes(Set<String> filterDispatcherTypes)