Class Cpe

java.lang.Object
org.nmap4j.data.host.Cpe

public class Cpe extends Object
A representation of the Common Platform Enumeration (CPE) in Nmap output.

The CPE data is documented here:

http://nmap.org/book/output-formats-cpe.html

But the important bits are that it is a colon delimited string. For example:

&ltcpe>cpe:/o:apple:mac_os_x:10.7</cpe>

This data is variable in length. This data can be a child of service or osclass. The data is formatted as follows: cpe:/:::::: The part data is as follows:

  • a - for applications,
  • h - for hardware platforms, or
  • o - for operating systems.
  • Field Details

  • Constructor Details

    • Cpe

      public Cpe()
    • Cpe

      public Cpe(String cpe)
  • Method Details

    • getCpeData

      public String getCpeData()
    • setCpeData

      public void setCpeData(String cpeData)
    • getPart

      public String getPart()
    • getVendor

      public String getVendor()
    • getProduct

      public String getProduct()
    • getVersion

      public String getVersion()
    • getUpdate

      public String getUpdate()
    • getEdition

      public String getEdition()
    • getLanguage

      public String getLanguage()