Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6787413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:21:46+00:00 2026-05-26T17:21:46+00:00

I am using the new Spring Security 3.1 and have a few questions to

  • 0

I am using the new Spring Security 3.1 and have a few questions to Spring Security ACL.

  1. So let’s say I have an object and want to define an ACL for it. I create an ACL Entry and want to asign it to a group of users; not a role (GrantedAuthoritySid), not one user (PrincipalSid), but a group of users. I have researched everywhere for an example but was unable to find any. Can you please point me to an example or the class that would help me in this scenario?

  2. So now I want to create a second object that is related to the first object (it should apply for the same users).
    This could be a status update for the first object for example. My GrantedAuthority or Principal has a different mask of permisions for the second object.
    Also the first object has 2 GrantedAuthorities (2 ACLEntries), and the status update has just one. If I use ACL inheritance the permision sets for the first object do not match the permision set for the second.
    My question is how can I model this so that the GrantedAuthorities for the two objects are automatically kept consistent while retaining different permision masks. One idea is to use a composite pattern to link the GrantedAuthority of the second object on the GrantedAuthority of the first object (instead of linking it to users).

  3. An ACL has a owner. What is the owner for? What role does it play for the ACL or for the ACL entries?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:21:46+00:00Added an answer on May 26, 2026 at 5:21 pm

    It’s kind of complicated. I reverse engineered the Spring source code to understand the principle and it took me a lot of time. I can’t exactly tell you how I implemented it (because it’s very specific for the project I work on) but will try to give you a starting point.

    What I did was:

    • Implement a custom org.springframework.security.acls.sid.Sid. This Sid references not an authority or user but a kind of groupobject which has an id and references two different objects. To use this groupobject as an Sid you have to create an ACL_Sid-record with the id of the object as ACL_sid.sid. ACL_sid.principal has to be an integer other than 0 or 1 which has to be checked for in a test in the custom LookupStrategy (see below and the Spring sourcecode).
    • Extend org.springframework.security.acls.sid.SidRetrievalStrategyImpl to retrieve the custom Sid‘s from the database.
    • Implement a custom org.springframework.security.acls.jdbc.LookupStrategy. I copied an existing implementation (because the class was final) and modified it for my needs.
    • Wired everything together in the spring configuration because the default Spring ACL config needs to no which classes it had to use (and not the defaults)

    Look at the Spring source code and see how it’s done.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new at Spring Security. I'm using jsf2 with spring security 3. Three questions:
I am new to grails. I am using grails 1.3.7, and spring security core
I have been using the new feature of Spring 3.1.1 the java based configuration.
Here is the problem. I have spring 3.0.5, using its new DATA JPA repository
I'm using Spring 3.1.0.RELEASE with Spring Security 3.1. I want to inject my Spring
I have the following situation: my application's authorization mechanism is implemented using Spring security.
Does spring security have a way to prevent the last point below? I'm using
I have an Groovy appilcation using Acegi Spring Security. My User Class looks as
I have just started using grails and installed the spring-security and spring-security-ui plugins. I
I am using spring security and have an admin jsp page for editing user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.