Class SpdxLicenseInfo.Attachments.UrlInfo

java.lang.Object
org.codehaus.mojo.license.spdx.SpdxLicenseInfo.Attachments.UrlInfo
Enclosing class:
SpdxLicenseInfo.Attachments

public static class SpdxLicenseInfo.Attachments.UrlInfo extends Object
A sha1 checksum and mime type associated with an URL.
Since:
1.18
  • Constructor Details

    • UrlInfo

      public UrlInfo(String sha1, String mimeType, boolean stable, boolean sanitized)
  • Method Details

    • isStable

      public boolean isStable()
      Returns:
      true is the checksum returned by getSha1() is likely to stay stable over time; false otherwise. The likeness of staying stable is (1) tested automatically when generatting SpdxLicenseListData and (2) for some sites it is set manually based on their historical behavior.
    • getSha1

      public String getSha1()
      Returns:
      the checksum computed after applying sanitizers at SpdxLicenseListData generation time.
    • getMimeType

      public String getMimeType()
    • isSanitized

      public boolean isSanitized()