public class AuthorizeHttpRequestsConfigurer.AuthorizedUrl
extends java.lang.Object
AuthorizationManager
for
RequestMatcher
s.protected java.util.List<? extends RequestMatcher> getMatchers()
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry permitAll()
AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
for further
customizationspublic AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry denyAll()
AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
for further
customizationspublic AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry hasRole(java.lang.String role)
role
- the role that should be required which is prepended with ROLE_
automatically (i.e. USER, ADMIN, etc). It should not start with ROLE_AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
for further
customizationspublic AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry hasAnyRole(java.lang.String... roles)
roles
- the roles that the user should have at least one of (i.e. ADMIN,
USER, etc). Each role should not start with ROLE_ since it is automatically
prepended alreadyAuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
for further
customizationspublic AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry hasAuthority(java.lang.String authority)
authority
- the authority that should be requiredAuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
for further
customizationspublic AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry hasAnyAuthority(java.lang.String... authorities)
authorities
- the authorities that the user should have at least one of
(i.e. ROLE_USER, ROLE_ADMIN, etc)AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
for further
customizationspublic AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry authenticated()
AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
for further
customizationspublic AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry access(AuthorizationManager<RequestAuthorizationContext> manager)
AuthorizationManager
.manager
- the AuthorizationManager
to useAuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
for further
customizations