private boolean isSameCircleOfTrust(BaseConfigType config,String realm,String entityID){
  boolean isTrusted=false;
  if (config != null) {
    Map attr=IDFFMetaUtils.getAttributes(config);
    List cotList=(List)attr.get(IDFFCOTUtils.COT_LIST);
    if ((cotList != null) && !cotList.isEmpty()) {
      for (Iterator iter=cotList.iterator(); iter.hasNext(); ) {
        String cotName=(String)iter.next();
        if (cotManager.isInCircleOfTrust(realm,cotName,COTConstants.IDFF,entityID)) {
          isTrusted=true;
        }
      }
    }
  }
  return isTrusted;
}

private boolean isSameCircleOfTrust ( BaseConfigType config , String realm , String entityID ) { boolean isTrusted = false ; if ( config != null ) { Map attr = IDFFMetaUtils . getAttributes ( config ) ; List cotList = ( List ) attr . get ( IDFFCOTUtils . COT_LIST ) ; if ( ( cotList != null ) && ! cotList . isEmpty ( ) ) { for ( Iterator iter = cotList . iterator ( ) ; iter . hasNext ( ) ; ) { String cotName = ( String ) iter . next ( ) ; if ( cotManager . isInCircleOfTrust ( realm , cotName , COTConstants . IDFF , entityID ) ) { isTrusted = true ; } } } } return isTrusted ; }
checks if the remote entity identifier is in the entity config ' s circle of trust .
