String messageLayer, // auth-layer attribute of message-security-config
String providerId, // provider id
String targetName // target name (config, instance, cluster, or 'server')
) throws Exception
{
final Target target = getTarget(targetName);
check1ToN(target);
Config config = ConfigAPIHelper.getConfigByName(getConfigContext(),
target.getConfigTarget().getName());
SecurityService securityService = config.getSecurityService();
MessageSecurityConfig messageSecurity =
securityService.getMessageSecurityConfigByAuthLayer(messageLayer);
if(messageSecurity==null)
{