java.lang.Object |
↳ |
org.springframework.security.access.expression.DenyAllPermissionEvaluator |
Class Overview
A null PermissionEvaluator which denies all access. Used by default for situations when permission
evaluation should not be required.
Public Constructors
public
DenyAllPermissionEvaluator
()
Public Methods
public
boolean
hasPermission
(Authentication authentication, Serializable targetId, String targetType, Object permission)
Alternative method for evaluating a permission where only the identifier of the target object
is available, rather than the target instance itself.
Parameters
authentication
| represents the user in question. Should not be null. |
targetId
| the identifier for the object instance (usually a Long) |
targetType
| a String representing the target's type (usually a Java classname). Not null. |
permission
| a representation of the permission object as supplied by the expression system. Not null. |