Very broad and I apologize if I have a lack of understanding but here goes: I have a webapp that I runs in a Liberty server in a CICS region. I would like certain functionality of that app to be user specific. For example, if a user logs into the web app, I want them to only be able to perform tasks on the page depending on who they are. I've looked into setting up roles but cant quite grasp it well. I have a setup thus far where any user in my CICS with an ID and password and access to that region can use my webapp. I will post the .xml security part. If more elaboration is needed please ask me.
<security-role>
<description>All CICS auhenticated users</description>
<role-name>cicsAllAuthenticated</role-name>
</security-role>
<security-constraint>
<display-name>xxx.xxxx.xxx.jdbc.web.SecurityConstraint</display-name>
<web-resource-collection>
<web-resource-name>xxxx.xxxx.xxxx.xxxx_xxxx.jdbc</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>cicsAllAuthenticated</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
I'm obtaining the IDs via some SAF registry and keystore setup in the server configuration. I just need to know if there is a way to use that in Java to grant privileges. Thanks for any ideas!