You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sv...@apache.org on 2007/10/23 12:47:26 UTC

svn commit: r587452 - in /incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure: README src/main/java/helloworld/ClientPWCBHandler.java

Author: svkrish
Date: Tue Oct 23 03:47:24 2007
New Revision: 587452

URL: http://svn.apache.org/viewvc?rev=587452&view=rev
Log:
adding some more code to the password handlers to give users an idea of how to typically deal with authentication

Modified:
    incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure/README
    incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure/src/main/java/helloworld/ClientPWCBHandler.java

Modified: incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure/README?rev=587452&r1=587451&r2=587452&view=diff
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure/README (original)
+++ incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure/README Tue Oct 23 03:47:24 2007
@@ -63,7 +63,12 @@
                                             deploys the helloworldwsclient
                                             .composite. It then calls the 
                                             HelloWorldServiceComponent
-          ClientPWCBHandler.java		  - Callback handler class to provide client password
+          ClientPWCBHandler.java		  - Callback handler class to provide client password.  The 
+          									handle(Callback[] callbacks) method of this class is where
+          									code for accessing user registries and retrieving passwords 
+          									for given user identifiers can be encapsulated.  For example
+          									here is where one could access LDAP registries to obtain or
+          									compare user identities and passwords.
          
       resources/
         wsdl

Modified: incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure/src/main/java/helloworld/ClientPWCBHandler.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure/src/main/java/helloworld/ClientPWCBHandler.java?rev=587452&r1=587451&r2=587452&view=diff
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure/src/main/java/helloworld/ClientPWCBHandler.java (original)
+++ incubator/tuscany/java/sca/samples/helloworld-ws-reference-secure/src/main/java/helloworld/ClientPWCBHandler.java Tue Oct 23 03:47:24 2007
@@ -36,7 +36,9 @@
         for (int i = 0; i < callbacks.length; i++) {
         	System.out.println("*** Calling Client UserId/Password Handler .... ");
             WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
+            System.out.println("User Id = " + pwcb.getIdentifer());
             pwcb.setPassword("TuscanyWsUserPasswd");
+            System.out.println("Set Password = " + pwcb.getPassword());
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org