void updateEntityConfig(String realm,String cotName,String protocolType,Set trustedProviders) throws COTException {
  if (protocolType.equalsIgnoreCase(COTConstants.IDFF)) {
    updateIDFFEntityConfig(realm,cotName,trustedProviders);
  }
 else   if (protocolType.equalsIgnoreCase(COTConstants.SAML2)) {
    updateSAML2EntityConfig(realm,cotName,trustedProviders);
  }
 else   if (protocolType.equalsIgnoreCase(COTConstants.WS_FED)) {
    updateWSFedEntityConfig(realm,cotName,trustedProviders);
  }
 else {
    String[] args={protocolType};
    throw new COTException("invalidProtocolType",args);
  }
}

void updateEntityConfig ( String realm , String cotName , String protocolType , Set trustedProviders ) throws COTException { if ( protocolType . equalsIgnoreCase ( COTConstants . IDFF ) ) { updateIDFFEntityConfig ( realm , cotName , trustedProviders ) ; } else if ( protocolType . equalsIgnoreCase ( COTConstants . SAML2 ) ) { updateSAML2EntityConfig ( realm , cotName , trustedProviders ) ; } else if ( protocolType . equalsIgnoreCase ( COTConstants . WS_FED ) ) { updateWSFedEntityConfig ( realm , cotName , trustedProviders ) ; } else { String [ ] args = { protocolType } ; throw new COTException ( "invalidProtocolType" , args ) ; } }
updates the trusted providers list in the entity configuration . the circle of trust type determines whether the entiry is an idff or saml2 provider .
