Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class AuthenticatedAuthorizationManager<T>
- Object
- AuthenticatedAuthorizationManager
ImplementsAuthorizationManager<T>
Grants access by whether the caller signed in at all.
Methods
Inherited methods
Method details
authenticated
public static <T> AuthenticatedAuthorizationManager<T> authenticated()The caller signed in: any authentication but the anonymous one.
anonymous
public static <T> AuthenticatedAuthorizationManager<T> anonymous()The caller did not sign in.
fullyAuthenticated
public static <T> AuthenticatedAuthorizationManager<T> fullyAuthenticated()The caller signed in during this session, rather than being recognized
by a remember-me cookie.
rememberMe
public static <T> AuthenticatedAuthorizationManager<T> rememberMe()The caller was recognized by a remember-me cookie.
check
public AuthorizationDecision check(Supplier<Authentication> authentication, T object)The decision; null abstains, which a request rule reads as granted.
Parameters
authenticationSupplier<Authentication>- who is asking, looked up only when the rule needs it
objectT- Not documented.