public String execute(Locale locale,Map params) throws WorkflowException {
  validateParameters(params);
  String realm=getString(params,ParameterKeys.P_REALM);
  String metadataFile=getString(params,ParameterKeys.P_META_DATA);
  String metadata=getContent(metadataFile,locale);
  String[] results=ImportSAML2MetaData.importData(realm,metadata,null);
  String cot=getString(params,ParameterKeys.P_COT);
  if ((cot != null) && (cot.length() > 0)) {
    try {
      String entityId=results[1];
      AddProviderToCOT.addToCOT(realm,cot,entityId);
    }
 catch (    COTException e) {
      throw new WorkflowException(e.getMessage());
    }
  }
  return getMessage("idp.configured",locale);
}

public String execute ( Locale locale , Map params ) throws WorkflowException { validateParameters ( params ) ; String realm = getString ( params , ParameterKeys . P_REALM ) ; String metadataFile = getString ( params , ParameterKeys . P_META_DATA ) ; String metadata = getContent ( metadataFile , locale ) ; String [ ] results = ImportSAML2MetaData . importData ( realm , metadata , null ) ; String cot = getString ( params , ParameterKeys . P_COT ) ; if ( ( cot != null ) && ( cot . length ( ) > 0 ) ) { try { String entityId = results [ 1 ] ; AddProviderToCOT . addToCOT ( realm , cot , entityId ) ; } catch ( COTException e ) { throw new WorkflowException ( e . getMessage ( ) ) ; } } return getMessage ( "idp.configured" , locale ) ; }
creates remote identity provider .
