I could use JASPIC using CAS and glassfish and JSR 196.
I would like to test JSR 196 to use with Glassfish 3.1.1, but the documentation
it's still in progress.
Please can someone give me how to activate it? I've created :
com.googlecode.cas.jaspic.soap.CasServerAuthModule
as Server provider in Glassfish console (Security->Message Security -> SOAP),
but don't know how to use it from a web service.
I've tried to enable it by using this glassfish-ejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-ejb-jar PUBLIC "-//GlassFish.org//DTD GlassFish Application
Server 3.1 EJB 3.1//EN" "http://glassfish.org/dtds/glassfish-ejb-jar_3_1-1.dtd">
<glassfish-ejb-jar>
<security-role-mapping>
<role-name>administrador</role-name>
<group-name>administrador</group-name>
</security-role-mapping>
<enterprise-beans>
<ejb>
<ejb-name>webServiceCAS</ejb-name>
<webservice-endpoint>
<port-component-name>webServiceCAS</port-component-name>
<message-security-binding auth-layer="SOAP" provider-id="casWSSAuthModule">
<message-security>
<message>
<java-method>
<method-name>*</method-name>
</java-method>
</message>
<request-protection/>
<response-protection/>
</message-security>
</message-security-binding>
</webservice-endpoint>
</ejb>
</enterprise-beans>
</glassfish-ejb-jar>
where provider-id is the same name as I've previously created in glassfish.
What am I doing wrong?