Interface JKAuthorizer


public interface JKAuthorizer
This interface is for authorizers responsible for checking user privileges and permissions.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method checks if the specified privilege is allowed.
    void
    checkAllowed(JKUser user, JKPrivilige privilige)
    This method checks if the specified user has the given privilege allowed.
    boolean
    This method checks if the specified privilege is valid.
  • Method Details

    • checkAllowed

      void checkAllowed(JKPrivilige privilige)
      This method checks if the specified privilege is allowed.
      Parameters:
      privilige - Specifies the privilege to be checked.
    • checkAllowed

      void checkAllowed(JKUser user, JKPrivilige privilige)
      This method checks if the specified user has the given privilege allowed.
      Parameters:
      user - Specifies the user for whom to check the privilege.
      privilige - Specifies the privilege to be checked.
    • isValidPrivilige

      boolean isValidPrivilige(JKPrivilige privilige)
      This method checks if the specified privilege is valid.
      Parameters:
      privilige - Specifies the privilege to be checked.
      Returns:
      true if the privilege is valid, false otherwise.