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

  • Home
  • SEARCH
  • 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 8578147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:19:13+00:00 2026-06-11T20:19:13+00:00

I am trying to mentally map Java EE 6 security concepts of groups ,

  • 0

I am trying to mentally map Java EE 6 security concepts of groups, users and roles to the Apache Shiro‘s concepts of roles, users and permissions and my understanding is that they are incompatible.

Reading through the Java EE 6 security tutorial it seems that the model is too restrictive: groups are configured on a per-server, not per-application, basis which really leaves us with only two flexible concepts to express the authorization mechanism: users and roles, existing in a simple 1-to-N relationship. In contrast Shiro’s model of roles, users and permissions is a lot more dynamic since it enables one to hardcode permissions in the annotated code and modify the mapping of roles to permissions at runtime as things change or as new roles are introduced. I don’t see how one can do the same with container-managed authorization as per the Java EE 6 model.

Is my understanding correct? Cause that would imply that one can’t really go very far with container-managed authorization.

  • 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-06-11T20:19:14+00:00Added an answer on June 11, 2026 at 8:19 pm

    They are not compatible and I think that the designers of the Java EE security got it wrong as the terminology seems to be off with regard to ROLES.

    From experience I know that providing access control based on ROLE (which is suggested in their documentation) just causes problems down the road when you want to open a capability to other groups/roles. Permission based access mapped back to roles (or groups) seems to work the best because its a remapping exercise at an abstract level rather than a recode/re-annotate one.

    I can see how you’d be confused about the Java EE security model. I’d suggest taking a closer look at Shiro and how it has modeled application level security. Les Hazelwood, the creator of Shiro, wrote a blog about RBAC that makes a lot of sense for applications that need fine grained control even down to the instance level.

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

Sidebar

Related Questions

Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to understand what's the correct way of implementing OpenID authentication with Spring Security.
Trying to create a simple document that gets the parentNode then applies a background
Trying to anonymize received headers for relayed messages from authenticated postfix users, there is
Trying to write a procedure that given a value and a list, it deletes
Trying to find some simple SQL Server PIVOT examples. Most of the examples that
Trying to make a make generic select control that I can dynamically add elements
Trying to perform a single boolean NOT operation, it appears that under MS SQL
The code below is part of authorization. I am trying to mentally imaging what
I am trying to fabricate an SQL query that will provide these results: |

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.