Class IsAuthenticatedAuthorizer

All Implemented Interfaces:
Authorizer

public class IsAuthenticatedAuthorizer extends AbstractCheckAuthenticationAuthorizer
The user must be authenticated. This authorizer should never be necessary unless using the AnonymousClient.
Since:
1.9.0
Author:
Jerome Leleu
  • Constructor Details

    • IsAuthenticatedAuthorizer

      public IsAuthenticatedAuthorizer()

      Constructor for IsAuthenticatedAuthorizer.

    • IsAuthenticatedAuthorizer

      public IsAuthenticatedAuthorizer(String redirectionUrl)

      Constructor for IsAuthenticatedAuthorizer.

      Parameters:
      redirectionUrl - a String object
  • Method Details

    • isAuthorized

      public boolean isAuthorized(WebContext context, SessionStore sessionStore, List<UserProfile> profiles)
      Checks if the user profiles and / or the current web context are authorized.
      Parameters:
      context - the web context
      sessionStore - the session store
      profiles - the user profiles
      Returns:
      if the access is authorized
    • isProfileAuthorized

      public boolean isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile)
      Whether a specific profile is authorized.
      Specified by:
      isProfileAuthorized in class ProfileAuthorizer
      Parameters:
      context - the web context
      sessionStore - the session store
      profile - the user profile
      Returns:
      whether a specific profile is authorized
    • isAuthenticated

      public static IsAuthenticatedAuthorizer isAuthenticated()

      isAuthenticated.

      Returns:
      a IsAuthenticatedAuthorizer object