public void modifyCircleOfTrust(String realm,CircleOfTrustDescriptor cotDescriptor) throws COTException {
  String classMethod="COTManager.modifyCircleOfTrust :";
  if (cotDescriptor == null) {
    throw new COTException("nullCot",null);
  }
  if (realm == null) {
    realm="/";
  }
  String name=cotDescriptor.getCircleOfTrustName();
  isValidCOTName(realm,name);
  try {
    Map attrs=cotDescriptor.getAttributes();
    configInst.setConfiguration(realm,name,attrs);
  }
 catch (  ConfigurationException e) {
    debug.error(classMethod,e);
    String[] data={e.getMessage(),name,realm};
    LogUtil.error(Level.INFO,LogUtil.CONFIG_ERROR_MODIFY_COT_DESCRIPTOR,data);
    throw new COTException(e);
  }
}

public void modifyCircleOfTrust ( String realm , CircleOfTrustDescriptor cotDescriptor ) throws COTException { String classMethod = "COTManager.modifyCircleOfTrust :" ; if ( cotDescriptor == null ) { throw new COTException ( "nullCot" , null ) ; } if ( realm == null ) { realm = "/" ; } String name = cotDescriptor . getCircleOfTrustName ( ) ; isValidCOTName ( realm , name ) ; try { Map attrs = cotDescriptor . getAttributes ( ) ; configInst . setConfiguration ( realm , name , attrs ) ; } catch ( ConfigurationException e ) { debug . error ( classMethod , e ) ; String [ ] data = { e . getMessage ( ) , name , realm } ; LogUtil . error ( Level . INFO , LogUtil . CONFIG_ERROR_MODIFY_COT_DESCRIPTOR , data ) ; throw new COTException ( e ) ; } }
modifies the attributes of a circle of trust .
