• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web-serivce basic authentication with J2C Authentication data in WAS7

 
srikanth kagollu
Greenhorn
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
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic