Interface AccessPrivilegeValidator
- All Known Implementing Classes:
ModuleAccessValidator,PermissionAccessValidator
public interface AccessPrivilegeValidator
Interface defining the contract for an Access Grant Validator.
An Access Grant Validator is responsible for determining whether access to a certain bean is granted based on
specific criteria.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether the given bean class can be handled by this validator.default booleanDetermines whether the given bean can be handled by this validator.Determines whether access to the given object class is granted based on specific criteria.default PrivilegeViolationDetermines whether access to the given object is granted based on specific criteria.
-
Method Details
-
canHandle
Determines whether the given bean can be handled by this validator.- Parameters:
bean- the object to be checked (might be null)- Returns:
- true if the bean can be handled, false otherwise
-
canHandle
Determines whether the given bean class can be handled by this validator.- Parameters:
cls- the class to be checked (might be null)- Returns:
- true if the bean can be handled, false otherwise
-
validate
Determines whether access to the given object is granted based on specific criteria.- Parameters:
bean- the object to be checked for access (might be null)- Returns:
- a
PrivilegeViolationinstance if there is any violation ornullotherwise
-
validate
Determines whether access to the given object class is granted based on specific criteria.- Parameters:
cls- the class to be checked for access (might be null)- Returns:
- a
PrivilegeViolationinstance if there is any violation ornullotherwise
-