Class DefaultPermissionFactory

java.lang.Object
org.springframework.security.acls.domain.DefaultPermissionFactory
All Implemented Interfaces:
PermissionFactory

public class DefaultPermissionFactory extends Object implements PermissionFactory
Default implementation of PermissionFactory.

Used as a strategy by classes which wish to map integer masks and permission names to Permission instances for use with the ACL implementation.

Maintains a registry of permission names and masks to Permission instances.

Since:
2.0.3
  • Constructor Details

    • DefaultPermissionFactory

      public DefaultPermissionFactory()
      Registers the Permission fields from the BasePermission class.
    • DefaultPermissionFactory

      public DefaultPermissionFactory(Class<? extends Permission> permissionClass)
      Registers the Permission fields from the supplied class.
    • DefaultPermissionFactory

      public DefaultPermissionFactory(Map<String,? extends Permission> namedPermissions)
      Registers a map of named Permission instances.
      Parameters:
      namedPermissions - the map of Permissions, keyed by name.
  • Method Details