public void updateIDPAuthenticationContexts(String realm,String entityName,IDFFAuthContexts cxt) throws AMConsoleException {
  List list=cxt.toIDPAuthContextInfo();
  String[] params={realm,entityName,"IDFF","IDP-updateIDPAuthenticationContexts"};
  logEvent("ATTEMPT_MODIFY_ENTITY_DESCRIPTOR",params);
  try {
    IDFFMetaManager idffMetaMgr=getIDFFMetaManager();
    EntityConfigElement entityConfig=idffMetaMgr.getEntityConfig(realm,entityName);
    if (entityConfig == null) {
      throw new AMConsoleException("invalid.entity.name");
    }
    IDPDescriptorConfigElement idpDecConfigElement=idffMetaMgr.getIDPDescriptorConfig(realm,entityName);
    if (idpDecConfigElement == null) {
      throw new AMConsoleException("invalid.config.element");
    }
 else {
      updateAttrInConfig(idpDecConfigElement,ATTR_IDP_AUTHN_CONTEXT_MAPPING,list);
    }
    idffMetaMgr.setEntityConfig(realm,entityConfig);
    logEvent("SUCCEED_MODIFY_ENTITY_DESCRIPTOR",params);
  }
 catch (  IDFFMetaException e) {
    String strError=getErrorString(e);
    String[] paramsEx={realm,entityName,"IDFF","IDP-updateIDPAuthenticationContexts",strError};
    logEvent("FEDERATION_EXCEPTION_MODIFY_ENTITY_DESCRIPTOR",paramsEx);
    throw new AMConsoleException(strError);
  }
  return;
}

public void updateIDPAuthenticationContexts ( String realm , String entityName , IDFFAuthContexts cxt ) throws AMConsoleException { List list = cxt . toIDPAuthContextInfo ( ) ; String [ ] params = { realm , entityName , "IDFF" , "IDP-updateIDPAuthenticationContexts" } ; logEvent ( "ATTEMPT_MODIFY_ENTITY_DESCRIPTOR" , params ) ; try { IDFFMetaManager idffMetaMgr = getIDFFMetaManager ( ) ; EntityConfigElement entityConfig = idffMetaMgr . getEntityConfig ( realm , entityName ) ; if ( entityConfig == null ) { throw new AMConsoleException ( "invalid.entity.name" ) ; } IDPDescriptorConfigElement idpDecConfigElement = idffMetaMgr . getIDPDescriptorConfig ( realm , entityName ) ; if ( idpDecConfigElement == null ) { throw new AMConsoleException ( "invalid.config.element" ) ; } else { updateAttrInConfig ( idpDecConfigElement , ATTR_IDP_AUTHN_CONTEXT_MAPPING , list ) ; } idffMetaMgr . setEntityConfig ( realm , entityConfig ) ; logEvent ( "SUCCEED_MODIFY_ENTITY_DESCRIPTOR" , params ) ; } catch ( IDFFMetaException e ) { String strError = getErrorString ( e ) ; String [ ] paramsEx = { realm , entityName , "IDFF" , "IDP-updateIDPAuthenticationContexts" , strError } ; logEvent ( "FEDERATION_EXCEPTION_MODIFY_ENTITY_DESCRIPTOR" , paramsEx ) ; throw new AMConsoleException ( strError ) ; } return ; }
update idp authentication contexts
