Package com.jk.core.security
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 TypeMethodDescriptionvoid
checkAllowed
(JKPrivilige privilige) 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
isValidPrivilige
(JKPrivilige privilige) This method checks if the specified privilege is valid.
-
Method Details
-
checkAllowed
This method checks if the specified privilege is allowed.- Parameters:
privilige
- Specifies the privilege to be checked.
-
checkAllowed
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
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.
-