Obtain the authentication service associated with rar module.
Currently only the BasicPassword authentication is supported.
ConnectorDescriptor cd = _registry.getDescriptor(rarName);
OutboundResourceAdapter obra = cd.getOutboundResourceAdapter();
Set authMechs = obra.getAuthMechanisms();
Iterator it = authMechs.iterator();
while(it.hasNext()) {
AuthMechanism authMechanism = (AuthMechanism)it.next();
String mech = authMechanism.getAuthMechType();
if(mech.equals("BasicPassword")) {
return new BasicPasswordAuthenticationService(rarName,poolName);
}
}
return null;