public class

DenyAllPermissionEvaluator

extends Object
implements PermissionEvaluator
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.

Summary

Public Constructors
DenyAllPermissionEvaluator()
Public Methods
boolean hasPermission(Authentication authentication, Object target, Object permission)
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.access.PermissionEvaluator

Public Constructors

public DenyAllPermissionEvaluator ()

Public Methods

public boolean hasPermission (Authentication authentication, Object target, Object permission)

Returns
  • false always

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.
Returns
  • false always