Class FromAttributesAuthorizationGenerator

  • All Implemented Interfaces:
    AuthorizationGenerator

    public class FromAttributesAuthorizationGenerator
    extends Object
    implements AuthorizationGenerator

    Generate the authorization information by inspecting attributes.

    The attributes containing the roles separated by the splitChar property (can be set through setSplitChar(String)) are defined in the constructor. It's the same for the attributes containing the permissions.

    Since:
    1.5.0
    Author:
    Jerome Leleu
    • Constructor Detail

      • FromAttributesAuthorizationGenerator

        public FromAttributesAuthorizationGenerator()
      • FromAttributesAuthorizationGenerator

        public FromAttributesAuthorizationGenerator​(Collection<String> roleAttributes,
                                                    Collection<String> permissionAttributes)
      • FromAttributesAuthorizationGenerator

        public FromAttributesAuthorizationGenerator​(String[] roleAttributes,
                                                    String[] permissionAttributes)
    • Method Detail

      • getSplitChar

        public String getSplitChar()
      • setSplitChar

        public void setSplitChar​(String splitChar)
      • setRoleAttributes

        public void setRoleAttributes​(String roleAttributesStr)
      • setPermissionAttributes

        public void setPermissionAttributes​(String permissionAttributesStr)