It would be nice to have those classes available long term, unfortunately they 
are deprecated, so who knows when they will actually go away.

----- Original Message ----
From: Matthias Wermund <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, March 24, 2008 4:28:01 AM
Subject: AW: Axis2 with rampart sample, username hardcoded

  
<!--
 _filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times 
New Roman", "serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.E-MailFormatvorlage17
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
.MsoChpDefault
        {}
 _filtered {margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {}
-->
Hi,
   
 this is the way I handle the rampart username in my clients programmatically:
   
                                                OutflowConfiguration
outflowConfig = new OutflowConfiguration();
                                                
outflowConfig.setActionItems("UsernameToken");
                                                outflowConfig.setUser("bob");
                                                
outflowConfig.setPasswordCallbackClass("test1.security.PWCBClientHandler");
                                                
axisstub._getServiceClient().getOptions().setProperty(WSSHandlerConstants.OUTFLOW_SECURITY,
                                                                               
outflowConfig.getProperty()); 
   
 Your password callback class then only needs to pass the correct
password for this username.
   
 Greets,
   
 Matthias
   
   
 Von: Daniel Woo[mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 24. März 2008 09:35
An: [email protected]
Betreff: Axis2 with rampart sample, username hardcoded
 
  
 Hi,

I tried to use axis2 with rampart for UsernameToken authentication. The 
problemis that all the samples just hardcoded the username in axis2.xml, eg:

    <parameter name="OutflowSecurity">
        <action>
           <items>UsernameToken</items>
           <user>bob</user>
           
<passwordCallbackClass>test1.security.PWCBClientHandler</passwordCallbackClass>
          </action>
    </parameter>

How can I get rid of the <user> element in the config file and set 
theusername/password in the handler PWCBClientHandler?

-- 
Thanks & Regards,
Daniel 
 






      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Reply via email to