in clientSecurity/src/main/java/org/apache/geode_examples/clientSecurity/ExampleAuthInit.java [42:53]
public Properties getCredentials(Properties securityProps) throws AuthenticationFailedException {
Properties credentials = new Properties();
String userName = securityProps.getProperty(USER_NAME);
if (userName == null) {
throw new AuthenticationFailedException(
"ExampleAuthInit: user name property [" + USER_NAME + "] not set.");
}
credentials.setProperty(USER_NAME, userName);
credentials.setProperty(PASSWORD, INSECURE_PASSWORD_FOR_EVERY_USER);
logger.info("SampleAuthInit: successfully obtained credentials for user " + userName);
return credentials;
}