How Do I Configure WS-Security Without Being Dependent on JBoss?

Solution Verified - Updated -

Issue

Adding the following to a test client:

       File file = new File( "META-INF/jboss-wsse-client.xml" );
        URI uri = null;
        try {
          uri = file.toURI();
                ((StubExt)servebase).setSecurityConfig(uri.toURL().toExternalForm());
                ((StubExt)servebase).setConfigName("Standard WSSecurity Client"); 
         } catch (MalformedURLException e) {
          e.printStackTrace();
         }

will correctly configure WS-Security using "META-INF/jboss-wsee-client.xml", but it makes the client dependent on JBoss.  Is there a way that WS-Security can be configured without depending on JBoss-specific classes?

Environment

  • JBoss Enterprise Application Platform 4.x
  • JBoss Enterprise Application Platform 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.