public final class ExpressionUrlAuthorizationConfigurer.AuthorizedUrl extends Object
public ExpressionUrlAuthorizationConfigurer.AuthorizedUrl not()
role
- the role to require (i.e. USER, ADMIN, etc). Note, it should not start with "ROLE_" as
this is automatically inserted.ExpressionUrlAuthorizationConfigurer
for further customizationpublic ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry hasRole(String role)
hasAuthority(String)
.role
- the role to require (i.e. USER, ADMIN, etc). Note, it should not start with "ROLE_" as
this is automatically inserted.ExpressionUrlAuthorizationConfigurer
for further customizationpublic ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry hasAnyRole(String... roles)
hasAnyAuthority(String...)
roles
- the roles to require (i.e. USER, ADMIN, etc). Note, it
should not start with "ROLE_" as this is automatically
inserted.ExpressionUrlAuthorizationConfigurer
for further
customizationpublic ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry hasAuthority(String authority)
authority
- the authority to require (i.e. ROLE_USER, ROLE_ADMIN, etc).ExpressionUrlAuthorizationConfigurer
for further customizationpublic ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry hasAnyAuthority(String... authorities)
authorities
- the requests require at least one of the authorities (i.e. "ROLE_USER","ROLE_ADMIN" would
mean either "ROLE_USER" or "ROLE_ADMIN" is required).ExpressionUrlAuthorizationConfigurer
for further customizationpublic ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry hasIpAddress(String ipaddressExpression)
ipaddressExpression
- the ipaddress (i.e. 192.168.1.79) or local subnet (i.e. 192.168.0/24)ExpressionUrlAuthorizationConfigurer
for further customizationpublic ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry permitAll()
ExpressionUrlAuthorizationConfigurer
for further customizationpublic ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry anonymous()
ExpressionUrlAuthorizationConfigurer
for further customizationpublic ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry rememberMe()
ExpressionUrlAuthorizationConfigurer
for further customizationRememberMeConfigurer}
public ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry denyAll()
ExpressionUrlAuthorizationConfigurer
for further customizationpublic ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry authenticated()
ExpressionUrlAuthorizationConfigurer
for further customizationpublic ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry fullyAuthenticated()
ExpressionUrlAuthorizationConfigurer
for further customizationRememberMeConfigurer}
public ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry access(String attribute)
attribute
- the expression to secure the URLs (i.e. "hasRole('ROLE_USER') and hasRole('ROLE_SUPER')")ExpressionUrlAuthorizationConfigurer
for further customization