title: JAAS - J2C authentication data
body: <p>Any idea of how to read the J2C Authentication Alias (UserId &amp; Password) configured in WAS 7.</p>
  
  <p>This will help me to avoid setting up these credentials as text in xml files in production for security reasons</p>
  
  <p>I got some codes which are not working</p>
  
  <p>com.ibm.ws.security.core.SecurityConfig securityConfig = com.ibm.ws.security.core.SecurityConfig.getConfig(); 
      Properties authProperties = securityConfig.getAuthData("widNode/LDAPAuthentication"); 
      String user= authProperties.getProperty("username"); 
      String password= authProperties.getProperty("password");</p>