1
0
mirror of synced 2026-08-06 02:08:01 +00:00

SEC-1022: Remove use of static methods/initializers in Acl Permissions. Added extra constructors to DefaultPermissionFactory to allow injection of custom permissions to the registry.

This commit is contained in:
Luke Taylor
2009-09-16 18:42:44 +00:00
parent 24155d4abe
commit 9f76db0606
3 changed files with 49 additions and 44 deletions
@@ -25,6 +25,7 @@ import org.springframework.security.acls.model.Permission;
*/
public class SpecialPermission extends BasePermission {
public static final Permission ENTER = new SpecialPermission(1 << 5, 'E'); // 32
public static final Permission LEAVE = new SpecialPermission(1 << 6, 'L');
protected SpecialPermission(int mask, char code) {
super(mask, code);