axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Warren Crossing <warren.cross...@nec.com.au>
Subject Custom WSSE EJB JBOSS Provider
Date Wed, 15 Nov 2006 01:25:15 GMT
After researching how to make a custom axis 1.4 provider which supports WSSE and passes the
certificate to jboss here is a code level synopisis.

notice the create is done with the standard username/assword login module

META-INF/services/org.apache.axis.deployment.wsdd.Provider
ws.WSDDJavaEJBProvider

jboss/server/all/conf/login-config.xml
<application-policy name="ws">
<authentication>
<login-module code="org.jboss.security.auth.spi.DatabaseCertLoginModule" flag="sufficient"
>
<module-option name="securityDomain">java:/jaas/ws</module-option>
<module-option name="dsJndiName">java:/ds/ws</module-option>
<module-option name="rolesQuery">select Role, RoleGroup from Roles where PrincipalID=?</module-option>
<module-option name="verifier">org.jboss.security.auth.certs.AnyCertVerifier</module-option>
</login-module>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="sufficient">
<module-option name="multi-threaded">true</module-option>
<module-option name="usersProperties">props/jbossws-users.properties</module-option>
<module-option name="rolesProperties">props/jbossws-roles.properties</module-option>
<module-option name="unauthenticatedIdentity">anonymous</module-option>
</login-module>
</authentication>
</application-policy>

Instead of providing too much info here, most other information can be found on the wsse or
axis or jboss sites.

Any questions, email this list.

Mime
View raw message