[Issue 1302] New - SecurityServerTube doesn't support CallbackHandlerFeature

View: New views
3 Messages — Rating Filter:   Alert me  

[Issue 1302] New - SecurityServerTube doesn't support CallbackHandlerFeature

by ateirney :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=1302
                 Issue #|1302
                 Summary|SecurityServerTube doesn't support CallbackHandlerFeat
                        |ure
               Component|wsit
                 Version|2.0
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|security
             Assigned to|kumarjayanti
             Reported by|ateirney






------- Additional comments from ateirney@... Wed Nov  4 09:08:30 +0000 2009 -------
SecurityServerTube doesn't support CallbackHandlerFeature as such a
CallbackHandler cannot be provided for the SecurityServerTube, it is possible
for the SecurityClientTube.

A suitable patch is as follows.

Index: SecurityServerTube.java
===================================================================
RCS file:
/cvs/wsit/wsit/rt/src/com/sun/xml/wss/jaxws/impl/SecurityServerTube.java,v
retrieving revision 1.31
diff -u -r1.31 SecurityServerTube.java
--- SecurityServerTube.java 2 Oct 2009 07:08:25 -0000 1.31
+++ SecurityServerTube.java 4 Nov 2009 09:08:20 -0000
@@ -51,6 +51,7 @@
 import com.sun.xml.ws.api.pipe.Tube;
 import com.sun.xml.ws.api.pipe.TubeCloner;
 import com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl;
+import com.sun.xml.ws.api.security.CallbackHandlerFeature;
 import com.sun.xml.ws.api.server.WebServiceContextDelegate;
 import com.sun.xml.ws.policy.Policy;
 import com.sun.xml.ws.policy.PolicyAssertion;
@@ -807,6 +808,11 @@
     }      
     
     private CallbackHandler configureServerHandler(Set<PolicyAssertion>
configAssertions, Properties props) {
+        CallbackHandlerFeature chf =
tubeConfig.getBinding().getFeature(CallbackHandlerFeature.class);
+        if (chf != null) {
+            return chf.getHandler();
+        }
+
         //Properties props = new Properties();
         String ret = populateConfigProperties(configAssertions, props);
         try {

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 1302] SecurityServerTube doesn't support CallbackHandlerFeature

by kumarjayanti-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=1302






------- Additional comments from kumarjayanti@... Wed Nov  4 09:16:10 +0000 2009 -------

 Thanks for the Patch, can you tell us where/how you would configure the feature
in your application ?.  Or maybe attach a simple sample.



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 1302] SecurityServerTube doesn't support CallbackHandlerFeature

by sm228678 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://wsit.dev.java.net/issues/show_bug.cgi?id=1302



User sm228678 changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from sm228678@... Fri Nov  6 15:01:26 +0000 2009 -------
integrated the patch ..
it will reflect in latest builds..


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...