O'Reilly logo

Spring Security Essentials by Nanda Nachimuthu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ACL implementation example and XML configuration for ACL

We will implement the ACL functionality in a Spring Service class now. We can provide the access privileges using ACL classes, as follows:

  1. Create a Spring Service class, as shown in the following:
    ACL implementation example and XML configuration for ACL
  2. Create the Book.java model class as shown in the following figure:
    ACL implementation example and XML configuration for ACL
  3. Create the BookServiceImpl.java service implementation class. In this block, we will create the grantPermission() method that has the ACL implementation to grant permission to the given principal. We also have to provide the read and write ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required