Class AuthenticatedAuthorizationManager<T>
java.lang.Object
com.codename1.backend.security.AuthenticatedAuthorizationManager<T>
- All Implemented Interfaces:
AuthorizationManager<T>
public final class AuthenticatedAuthorizationManager<T>
extends Object
implements AuthorizationManager<T>
Grants access by whether the caller signed in at all.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> AuthenticatedAuthorizationManager<T> The caller did not sign in.static <T> AuthenticatedAuthorizationManager<T> The caller signed in: any authentication but the anonymous one.check(Supplier<Authentication> authentication, T object) The decision; null abstains, which a request rule reads as granted.static <T> AuthenticatedAuthorizationManager<T> The caller signed in during this session, rather than being recognized by a remember-me cookie.static <T> AuthenticatedAuthorizationManager<T> The caller was recognized by a remember-me cookie.
-
Method Details
-
authenticated
The caller signed in: any authentication but the anonymous one. -
anonymous
The caller did not sign in. -
fullyAuthenticated
The caller signed in during this session, rather than being recognized by a remember-me cookie. -
rememberMe
The caller was recognized by a remember-me cookie. -
check
Description copied from interface:AuthorizationManagerThe decision; null abstains, which a request rule reads as granted.- Specified by:
checkin interfaceAuthorizationManager<T>- Parameters:
authentication- who is asking, looked up only when the rule needs it
-