public final class VastAPIWrapper extends AbstractAPIWrapper
Provides access to the VAST API. The Veracode Vendor Application Security Testing program's APIs make it possible to automate vendor and enterprise tasks.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GET_SHARED_REPORT_INFO_URI |
static java.lang.String |
GET_SHARED_REPORT_LIST_URI |
static java.lang.String |
SHARED_REPORT_PDF_URI |
static java.lang.String |
SHARED_REPORT_URI |
BASE_ADDRESS
Constructor and Description |
---|
VastAPIWrapper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSharedReportInfo(java.lang.String app_id)
Returns the information about a specific shared report, or, if you do not
specify a shared report ID, of the latest report that was shared.
|
java.lang.String |
getSharedReportInfo(java.lang.String app_id,
java.lang.String shared_report_id)
Returns the information about a specific shared report, or, if you do not
specify a shared report ID, of the latest report that was shared.
|
java.lang.String |
getSharedReportList(java.lang.String app_id)
Returns a list of published, shared reports that are linked to the
application.
|
java.lang.String |
sharedReport(java.lang.String app_id,
java.lang.String shared_report_id)
Returns the details of a shared report.
|
byte[] |
sharedReportPdf(java.lang.String app_id,
java.lang.String shared_report_id)
Returns the shared report PDF document.
|
setUpApiCredentials, setUpCredentials, setUpProxy, setUpProxy, setUpProxy
public static final java.lang.String GET_SHARED_REPORT_INFO_URI
public static final java.lang.String GET_SHARED_REPORT_LIST_URI
public static final java.lang.String SHARED_REPORT_URI
public static final java.lang.String SHARED_REPORT_PDF_URI
public java.lang.String getSharedReportInfo(java.lang.String app_id) throws java.io.IOException
Returns the information about a specific shared report, or, if you do not specify a shared report ID, of the latest report that was shared.
Calls this URL: https://analysiscenter.veracode.com/api/3.0/getsharedreportinfo.do Schema File: https ://analysiscenter.veracode.com/resource/3.0/sharedreportinfo.xsd
app_id
- A String that represents an Integer value. Requiredjava.io.IOException
public java.lang.String getSharedReportInfo(java.lang.String app_id, java.lang.String shared_report_id) throws java.io.IOException
Returns the information about a specific shared report, or, if you do not specify a shared report ID, of the latest report that was shared.
Calls this URL: https://analysiscenter.veracode.com/api/3.0/getsharedreportinfo.do Schema File: https ://analysiscenter.veracode.com/resource/3.0/sharedreportinfo.xsd
app_id
- A String that represents an Integer value. Requiredshared_report_id
- Optional. A String that represents an Integer value. You can
get the shared report ID from the sharedreportlist.xml file
that is returned by the getsharedreportlist.do call.java.io.IOException
public java.lang.String getSharedReportList(java.lang.String app_id) throws java.io.IOException
Returns a list of published, shared reports that are linked to the application.
Calls this URL: https://analysiscenter.veracode.com/api/3.0/getsharedreportlist.do Schema File: https ://analysiscenter.veracode.com/resource/3.0/sharedreportlist.xsd
app_id
- Required. A String that represents an Integer value.java.io.IOException
public java.lang.String sharedReport(java.lang.String app_id, java.lang.String shared_report_id) throws java.io.IOException
Returns the details of a shared report.
Calls this URL: https://analysiscenter.veracode.com/api/3.0/sharedreport.do Schema File: https://analysiscenter.veracode.com/resource/summaryreport.xsd
app_id
- Required. A String that represents an Integer value.shared_report_id
- Required. A String that represents an Integer value.java.io.IOException
public byte[] sharedReportPdf(java.lang.String app_id, java.lang.String shared_report_id) throws java.io.IOException
Returns the shared report PDF document. You specify where you want the PDF to save.
Calls this URL: https://analysiscenter.veracode.com/api/3.0/sharedreportpdf.do
app_id
- Required. A String that represents an Integer value.shared_report_id
- Required. A String that represents an Integer value.java.io.IOException