java - Alternative ways to configure security constraints with container managed security outside web.xml? -


If you use the Java EE6 Container managed security, then you have security for resources inside the web.xml deployment descriptor You can configure the obstacles. Are there alternative ways to do this?

For example, the container can get them out of the database, as it does with user data.

Is such a thing possible? I would like a method that does not need to recoup the webapp again.

Thanks in advance.

Actually, the standard approach is to use an LDAP, where you declare users and make them Allocate for LDAP groups, which are then mapped to security barriers. Administration at the user level is done in LDAP. And once security is depleted, they almost never change my experience (why they will?) Check out the tutorial for more on this.

So, to answer your question clearly, it is not possible to draw obstacles from the database, it's not just how JavaEE security works if you More flexibility is needed, so maybe a look, but I do not think it allows to set the roles either dynamically.

To be honest, I do not really understand the use case. As I said, once defined, security-barriers do not change normally and if you need to protect the new resources, then you are likely to adjust the application again. But I'm missing something


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -