Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class AuthorizeHttpRequestsConfigurer.AuthorizedUrl
- Object
- AuthorizeHttpRequestsConfigurer.AuthorizedUrl
What the chosen requests need.
Methods
Inherited methods
Method details
permitAll
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry permitAll()Anyone, signed in or not.
denyAll
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry denyAll()Nobody.
authenticated
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry authenticated()Anyone who signed in.
fullyAuthenticated
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry fullyAuthenticated()Only callers who did not sign in.
Signed in during this session: not recognized by a remember-me
cookie. For what should ask for the password again.
rememberMe
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry rememberMe()Recognized by a remember-me cookie, and not signed in since.
anonymous
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry anonymous()hasRole
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry hasRole(String role)A caller with the role:
hasRole("ADMIN") asks for the authority
ROLE_ADMIN.hasAnyRole
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry hasAnyRole(String... roles)A caller with any one of the roles.
hasAuthority
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry hasAuthority(String authority)A caller with the authority, as it is written.
hasAnyAuthority
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry hasAnyAuthority(String... authorities)A caller with any one of the authorities.
access
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry access(AuthorizationManager<RequestAuthorizationContext> manager)Whoever
manager grants.