This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.