Class OrAuthorizer

  • All Implemented Interfaces:
    Authorizer

    public class OrAuthorizer
    extends java.lang.Object
    implements Authorizer
    The disjunction of authorizers.
    Since:
    3.4.0
    Author:
    Sergey Morgunov
    • Constructor Detail

      • OrAuthorizer

        public OrAuthorizer​(java.util.List<Authorizer> authorizers)
    • Method Detail

      • isAuthorized

        public boolean isAuthorized​(WebContext context,
                                    SessionStore sessionStore,
                                    java.util.List<UserProfile> profiles)
        Description copied from interface: Authorizer
        Checks if the user profiles and / or the current web context are authorized.
        Specified by:
        isAuthorized in interface Authorizer
        Parameters:
        context - the web context
        sessionStore - the session store
        profiles - the user profiles
        Returns:
        if the access is authorized
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object