com.contrastsecurity.rest
Class Trace

java.lang.Object
  extended by com.contrastsecurity.rest.Trace

public class Trace
extends Object

A vulnerability identified by Contrast.


Constructor Summary
Trace()
           
 
Method Summary
 List<TraceEvent> getEvents()
          The events that make up the vulnerability.
 String getEvidence()
          Return any arbitrarily-formatted 'evidence' for this trace.
 String getHash()
          Return the simple, numeric hash of this trace
 String getLanguage()
          Return the language of application this trace was discovered in.
 HttpRequest getRequest()
          Return the HTTP request that caused this trace to occur.
 String getRule()
          Return the name of the rule that caused this trace.
 String getStatus()
          Return the status of this trace, like "Reported", "Verified", "Suspicious", etc.
 String getTitle()
          Return the title for this vulnerability, e.g.: "XSS on /foo.jsp in 'bar' parameter"
 String getUuid()
          Return the UUID for this trace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trace

public Trace()
Method Detail

getTitle

public String getTitle()
Return the title for this vulnerability, e.g.: "XSS on /foo.jsp in 'bar' parameter"

Returns:
the title of this vulnerability

getEvidence

public String getEvidence()
Return any arbitrarily-formatted 'evidence' for this trace. Many rules won't cause any evidence to be created.

Returns:
an arbitrarily-formatted 'evidence' for this trace, or null if none present

getLanguage

public String getLanguage()
Return the language of application this trace was discovered in.

Returns:
the language of application this trace was discovered in

getStatus

public String getStatus()
Return the status of this trace, like "Reported", "Verified", "Suspicious", etc.

Returns:
the status of this trace, like "Reported", "Verified", "Suspicious", etc

getHash

public String getHash()
Return the simple, numeric hash of this trace

Returns:
numeric hash of this trace

getUuid

public String getUuid()
Return the UUID for this trace.

Returns:
the UUID for this trace

getRule

public String getRule()
Return the name of the rule that caused this trace.

Returns:
the name of the rule that caused this trace

getRequest

public HttpRequest getRequest()
Return the HTTP request that caused this trace to occur.

Returns:
the causing HTTP request

getEvents

public List<TraceEvent> getEvents()
The events that make up the vulnerability. Some traces will only have an evidence field and no events.

Returns:


Copyright © 2014. All Rights Reserved.