Class AssetContent

java.lang.Object
com.thalesgroup.gemalto.d1.card.AssetContent

public class AssetContent extends Object
The Card Asset content includes the MIME type, encoded bytes, width and height of the resource.
Since:
1.0.0
  • Constructor Details

  • Method Details

    • getMimeType

      @NonNull public AssetContent.MimeType getMimeType()
      Gets the MIME type of this resource in PNG, SVG, or PDF format.
    • getEncodedData

      @NonNull public String getEncodedData()
      Gets the resource bytes encoded in Base64 format.
    • getWidth

      public int getWidth()
      Gets width of the resource (if any). Required for PNG images.
    • getHeight

      public int getHeight()
      Gets the height of the resource (if any). Required for PNG images.