Author: hfnukal
Date: 2012-07-25 13:14:42 -0400 (Wed, 25 Jul 2012)
New Revision: 8802
Modified:
epp/portal/branches/EPP_5_2_Branch/wsrp-integration/extension-component/src/main/java/org/gatein/integration/wsrp/wss/JBoss5WSSServiceIntegration.java
Log:
wsrp-integration
Modified:
epp/portal/branches/EPP_5_2_Branch/wsrp-integration/extension-component/src/main/java/org/gatein/integration/wsrp/wss/JBoss5WSSServiceIntegration.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/wsrp-integration/extension-component/src/main/java/org/gatein/integration/wsrp/wss/JBoss5WSSServiceIntegration.java 2012-07-25
11:05:58 UTC (rev 8801)
+++
epp/portal/branches/EPP_5_2_Branch/wsrp-integration/extension-component/src/main/java/org/gatein/integration/wsrp/wss/JBoss5WSSServiceIntegration.java 2012-07-25
17:14:42 UTC (rev 8802)
@@ -27,6 +27,7 @@
import org.picocontainer.Startable;
import org.wsrp.wss.jboss5.handlers.consumer.JBWSSecurityHandlerWrapper;
import org.wsrp.wss.jboss5.handlers.consumer.WSSecurityCredentialHandler;
+import org.wsrp.wss.jboss5.handlers.consumer.JBWSCustomizePortListener;
/**
* @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
@@ -36,13 +37,12 @@
{
private final WebServiceSecurityFactory wssFactory;
- private final WSSecurityCredentialHandler WS_CREDENTIAL_HANDLER;
- private final JBWSSecurityHandlerWrapper JBWS_SECURITY_WRAPPER = new
JBWSSecurityHandlerWrapper();
+ private final JBWSCustomizePortListener JBWS_CUSTOMIZE_PORT_LISTENER = new
JBWSCustomizePortListener();
public JBoss5WSSServiceIntegration(CredentialsAccessor credentialsAccessor)
{
wssFactory = WebServiceSecurityFactory.getInstance();
- WS_CREDENTIAL_HANDLER = new WSSecurityCredentialHandler(credentialsAccessor);
+ wssFactory.setCredentialsAccessor(credentialsAccessor);
}
public void start()
@@ -56,15 +56,13 @@
}
protected void startConsumer()
- {
- wssFactory.registerWebServiceSecurityHandler(WS_CREDENTIAL_HANDLER);
- wssFactory.registerWebServiceSecurityHandler(JBWS_SECURITY_WRAPPER);
+ {
+ wssFactory.addCustomizePortListener(JBWS_CUSTOMIZE_PORT_LISTENER);
}
protected void stopConsumer()
{
- wssFactory.unregisterWebServiceSecurityHandler(WS_CREDENTIAL_HANDLER);
- wssFactory.unregisterWebServiceSecurityHandler(JBWS_SECURITY_WRAPPER);
+ wssFactory.removeCustomizePortListener(JBWS_CUSTOMIZE_PORT_LISTENER);
}
}
Show replies by date