[jboss-dev-forums] [Design of Security on JBoss] - Re: Security Injection in AS5

alesj do-not-reply at jboss.com
Wed May 7 11:36:23 EDT 2008


"sguilhen at redhat.com" wrote : One of the details I have to address has to do with schema validation. Is there any way to express a <xsd:choice> using the annotations? I'm asking because security policies should either have an authentication or an <authentication-jaspi> element, but never both simultaneously. How do I express this kind of restriction?
I see a bunch of xsd:choice usage here:
 - http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/kernel/src/resources/main/schema/bean-deployer_2_0.xsd
but I don't think we do any special treatment / annotations in the code.

You can do this programmatically, as we do it in certain places:
 - http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractBeanMetaData.java
see initialVisit method.

You can put this just before you create your security bean metadata.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149180#4149180

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149180



More information about the jboss-dev-forums mailing list