Examples of PluginClient


Examples of com.denimgroup.threadfix.remote.PluginClient

    public static Endpoint.Info[] getEndpoints() {
        return getPluginClient().getEndpoints(BurpPropertiesManager.getAppId());
    }

    private static PluginClient getPluginClient() {
        return new PluginClient(new BurpPropertiesManager());
    }
View Full Code Here

Examples of com.denimgroup.threadfix.remote.PluginClient

                boolean completed = false;
               
                if (configured) {
                  logger.info("Got application id, about to generate XML and use REST call.");
 
                  Endpoint.Info[] endpoints = new PluginClient(ZapPropertiesManager.INSTANCE)
                            .getEndpoints(ZapPropertiesManager.INSTANCE.getAppId());
                 
                  if (endpoints.length == 0) {
                    view.showWarningDialog("Failed to retrieve endpoints from ThreadFix. Check your key and url.");
                  } else {
View Full Code Here

Examples of com.denimgroup.threadfix.remote.PluginClient

  }
 
  private static List<VulnerabilityMarker> getMarkers(String appId) {
    List<VulnerabilityMarker> markers = new ArrayList<VulnerabilityMarker>();
   
    PluginClient client = new PluginClient(EclipsePropertiesManager.INSTANCE);
   
    VulnerabilityMarker[] markerArray = client.getVulnerabilityMarkers(appId);
   
    if (markerArray != null) {
      markers.addAll(Arrays.asList(markerArray));
    }
   
View Full Code Here

Examples of com.denimgroup.threadfix.remote.PluginClient

import com.denimgroup.threadfix.remote.PluginClient;

public class ThreadFixService {

  public static ApplicationsMap getApplications() {
        Application.Info[] applications = new PluginClient(EclipsePropertiesManager.INSTANCE).getThreadFixApplications();
   
        ApplicationsMap map = new ApplicationsMap();

    for (Application.Info application : applications) {
            map.addApp(application.organizationName, application.applicationName, application.applicationId);
View Full Code Here

Examples of com.denimgroup.threadfix.remote.PluginClient

       
        return resultId != null;
    }

    public static Map<String, String> getApplicationMap() {
        PluginClient client = new PluginClient(ZapPropertiesManager.INSTANCE);

        Application.Info[] apps = client.getThreadFixApplications();

        Map<String, String> returnMap = new HashMap<>();

        if (apps != null) {
            for (Application.Info app : apps) {
View Full Code Here

Examples of com.denimgroup.threadfix.remote.PluginClient

                    logger.info("About to try to upload.");


                        ZapPropertiesManager manager = ZapPropertiesManager.INSTANCE;

                        RestResponse<Object> response = new PluginClient(manager)
                                    .uploadScan(manager.getAppId(), file);

                        int responseCode = response.responseCode;

                    if (responseCode == 0) {
View Full Code Here

Examples of com.denimgroup.threadfix.remote.PluginClient

        return cache;
    }

    public static List<VulnerabilityMarker> getAllMarkers() {
        PluginClient client = new PluginClient(IntelliJPropertiesManager.INSTANCE);

        List<VulnerabilityMarker> markers = new ArrayList<VulnerabilityMarker>();

        for (String appId : IntelliJPropertiesManager.INSTANCE.getApplicationIds()) {
            VulnerabilityMarker[] appMarkers = client.getVulnerabilityMarkers(appId);
            markers = Arrays.asList(appMarkers);
        }

        cache = markers;
View Full Code Here

Examples of com.denimgroup.threadfix.remote.PluginClient

public class ThreadFixApplicationService {

    public static ApplicationsMap getApplications() {

        Application.Info[] infoArray = new PluginClient(IntelliJPropertiesManager.INSTANCE).getThreadFixApplications();

        ApplicationsMap map = new ApplicationsMap();

        for (Application.Info info : infoArray) {
            map.addApp(info);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.