aspose file tools*
The moose likes Web Services and the fly likes web-serivce basic authentication with J2C Authentication data in WAS7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "web-serivce basic authentication with J2C Authentication data in WAS7" Watch "web-serivce basic authentication with J2C Authentication data in WAS7" New topic
Author

web-serivce basic authentication with J2C Authentication data in WAS7

srikanth kagollu
Greenhorn

Joined: Aug 09, 2012
Posts: 2
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
com.ibm.ws.security.core.SecurityConfig securityConfig = com.ibm.ws.security.core.SecurityConfig.getConfig();
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 com.ibm.ws.security.core.SecurityConfig class.

Thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web-serivce basic authentication with J2C Authentication data in WAS7