Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web-serivce basic authentication with J2C Authentication data in WAS7

srikanth kagollu
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am new to Java Ranch.
I have an issue with authentication of a webservice.
i am using IBM WAS 7 application server and RAD7.5.
Can any one please let me know how to retrieve the username and password from a J2C authentication data? i tried googling but didnt find any answers.
i found below code securityConfig =;
Properties authProperties = securityConfig.getAuthData("NameSpace");
String id= authProperties.getProperty("username");
String pwd= authProperties.getProperty("password");

but this one is not working, i am not able to find class.

Thanks in advance
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic