SEC-1166: Provide strategy interface for AclImpl isGranted() method. #1414

Closed
spring-issuemaster opened this Issue May 26, 2009 · 4 comments

1 participant

@spring-issuemaster

Luke Taylor (Migrated from SEC-1166) said:

This will allow more flexibility in the way the permission bitmasks are evaluated. The existing auditLogger should be moved to the default implementation, as this is the only place logging occurs in AclImpl.

@spring-issuemaster

Luke Taylor said:

Done. See "source" tab for information.

@spring-issuemaster

Bojan Tomic said:

Does this mean providing a bitwise comparing strategy is a safe thing to do?

@spring-issuemaster

Peter Rietzler said:

It would be nice if DefaultPermissionGrantingStrategy would contain a template method in order to decide if a permission is contained in the given mask - see
https://gist.github.com/oliverfernandez/36846fcdc03696a7b829
which is a copy with a new method containsPermission. If DefaultPermissionGrantingStrategy would adopt this with a protected version of containsPermission it would be easier to add stuff like bit-wise permission checking etc.

@spring-issuemaster spring-issuemaster added this to the 3.1.0.M1 milestone Feb 5, 2016
@spring-issuemaster

This issue supersedes #740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment