Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class AuthenticatedAuthorizationManager<T>

  1. Object
  2. AuthenticatedAuthorizationManager

ImplementsAuthorizationManager<T>

Grants access by whether the caller signed in at all.

Methods

public static <T> AuthenticatedAuthorizationManager<T> authenticated()The caller signed in: any authentication but the anonymous one.
public static <T> AuthenticatedAuthorizationManager<T> anonymous()The caller did not sign in.
public static <T> AuthenticatedAuthorizationManager<T> fullyAuthenticated()The caller signed in during this session, rather than being recognized by a remember-me cookie.
public static <T> AuthenticatedAuthorizationManager<T> rememberMe()The caller was recognized by a remember-me cookie.
public AuthorizationDecision check(Supplier<Authentication> authentication, T object)The decision; null abstains, which a request rule reads as granted.

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

authentication Supplier<Authentication>
who is asking, looked up only when the rule needs it
object T
Not documented.