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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to