Hi Sagara, Thank you !
As you said, now I'm referring to [1], a CXF example where it has used Callbackhandlers to enable UsernameToken security. Hope this is the best way to do ? [1] - https://web-gmazza.rhcloud.com/blog/entry/cxf-usernametoken-profile BR *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/ <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ> lean.enterprise.middleware Mobile: +94722241032 On Tue, Jan 13, 2015 at 12:24 PM, Sagara Gunathunga <sag...@wso2.com> wrote: > > > On Tue, Jan 13, 2015 at 12:18 PM, Asok Perera <as...@wso2.com> wrote: > >> Hi, >> >> I'm developing a JAX WS service and I need to enable security such a way >> that it supports below tags in SOAP header. >> >> <wsse:Security s:mustUnderstand="1"> >> >> <wsse:UsernameToken >> u:Id="uuid-cc1ccc1f-2fba-4bcf-b063-ffc0cac77917-4"> >> <wsse:Username>u...@contoso.com</wsse:Username> >> <wsse:Password >> wsse:Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss- >> >> username-token-profile-1.0#PasswordText">mypassword</wsse:Password> >> </wsse:UsernameToken> >> >> </wsse:Security> >> >> >> Does someone know how to enable this using @annotations in the service >> side ? >> > > There is no annotation based java spec for WS-Security use CXF specific > security, refer AS/CXF security samples. > > Thanks ! > >> >> BR >> >> *Asok Aravinda Perera* >> Software Engineer >> WSO2, Inc.;http://wso2.com/ >> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ> >> lean.enterprise.middleware >> >> Mobile: +94722241032 >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Sagara Gunathunga > > Senior Technical Lead; WSO2, Inc.; http://wso2.com > V.P Apache Web Services; http://ws.apache.org/ > Linkedin; http://www.linkedin.com/in/ssagara > Blog ; http://ssagara.blogspot.com > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev