Class AuthorizeHttpRequestsConfigurer.AuthorizedUrl
java.lang.Object
com.codename1.backend.security.AuthorizeHttpRequestsConfigurer.AuthorizedUrl
- Enclosing class:
AuthorizeHttpRequestsConfigurer
What the chosen requests need.
-
Method Summary
Modifier and TypeMethodDescriptionWhoevermanagergrants.Anyone who signed in.denyAll()Nobody.Only callers who did not sign in.hasAnyAuthority(String... authorities) A caller with any one of the authorities.hasAnyRole(String... roles) A caller with any one of the roles.hasAuthority(String authority) A caller with the authority, as it is written.A caller with the role:hasRole("ADMIN")asks for the authorityROLE_ADMIN.Anyone, signed in or not.Recognized by a remember-me cookie, and not signed in since.
-
Method Details
-
permitAll
Anyone, signed in or not. -
denyAll
Nobody. -
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
Recognized by a remember-me cookie, and not signed in since. -
anonymous
-
hasRole
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry hasRole(String role) A caller with the role:hasRole("ADMIN")asks for the authorityROLE_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) Whoevermanagergrants.
-