• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to programmatically authorize a User based upon User Group

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

I have a user group which has been passed to be from a java program.
How can i check the access control of that user group to access a resource programmatically.?

Kindly help, as this is Urgent?

Regards
Tarun
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm not a security expert and I'm not sure what kind of resources
you refer to, but here is a start.

If you are interested in EJBs get the EJB Spec at
http://java.sun.com/products/ejb/docs.html
Find the Security Management chapter and look at Bean Provider's Responsibilities. The spec is readable. See explanation of
isCallerInRole and getCallerPrincipal functions.

The same functions seem to be used in Servlets.
For Servlet Spec
http://jcp.org/en/jsr/detail?id=154
For JSP Spec
http://jcp.org/en/jsr/detail?id=152
http://java.sun.com/security/ has links to the JAAS Java Authentication
and Authorization Service API.

http://edocs.bea.com/wls/docs81/secintro/concepts.html - Security Concepts in Weblogic including JAAS.

Good Luck!!!
 
Ken Rubin
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also please consider the warnings in the Specs about coding Security
Policies.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic