public void modifyEntityProfile(String realm,String entityName,Map map) throws AMConsoleException {
  String[] param={entityName};
  logEvent("ATTEMPT_MODIFY_ENTITY_DESCRIPTOR",param);
  try {
    IDFFMetaManager manager=getIDFFMetaManager();
    EntityDescriptorElement desc=manager.getEntityDescriptor(realm,entityName);
    desc.setValidUntil((String)AMAdminUtils.getValue((Set)map.get(ATTR_VALID_UNTIL)));
    desc.setCacheDuration((String)AMAdminUtils.getValue((Set)map.get(ATTR_CACHE_DURATION)));
    manager.setEntityDescriptor(realm,desc);
    logEvent("SUCCEED_MODIFY_ENTITY_DESCRIPTOR",param);
  }
 catch (  IDFFMetaException e) {
    String[] paramsEx={entityName,getErrorString(e)};
    logEvent("FEDERATION_EXCEPTION_MODIFY_ENTITY_DESCRIPTOR",paramsEx);
    throw new AMConsoleException(getErrorString(e));
  }
}

public void modifyEntityProfile ( String realm , String entityName , Map map ) throws AMConsoleException { String [ ] param = { entityName } ; logEvent ( "ATTEMPT_MODIFY_ENTITY_DESCRIPTOR" , param ) ; try { IDFFMetaManager manager = getIDFFMetaManager ( ) ; EntityDescriptorElement desc = manager . getEntityDescriptor ( realm , entityName ) ; desc . setValidUntil ( ( String ) AMAdminUtils . getValue ( ( Set ) map . get ( ATTR_VALID_UNTIL ) ) ) ; desc . setCacheDuration ( ( String ) AMAdminUtils . getValue ( ( Set ) map . get ( ATTR_CACHE_DURATION ) ) ) ; manager . setEntityDescriptor ( realm , desc ) ; logEvent ( "SUCCEED_MODIFY_ENTITY_DESCRIPTOR" , param ) ; } catch ( IDFFMetaException e ) { String [ ] paramsEx = { entityName , getErrorString ( e ) } ; logEvent ( "FEDERATION_EXCEPTION_MODIFY_ENTITY_DESCRIPTOR" , paramsEx ) ; throw new AMConsoleException ( getErrorString ( e ) ) ; } }
modifies entity descriptor profile .
