Set authMechs = obra.getAuthMechanisms();
for (Object authMech : authMechs) {
AuthMechanism authMechanism = (AuthMechanism) authMech;
String mech = authMechanism.getAuthMechType();
if (mech.equals("BasicPassword")) {
return new BasicPasswordAuthenticationService(rarName, poolInfo);
}
}
return null;
}