Class MediaValue

java.lang.Object
com.yoti.api.client.spi.remote.MediaValue
All Implemented Interfaces:
Media

public class MediaValue extends Object implements Media
  • Constructor Details

    • MediaValue

      public MediaValue(String mimeType, byte[] content)
  • Method Details

    • getMimeType

      public String getMimeType()
      Description copied from interface: Media
      Get mime type of the content
      Specified by:
      getMimeType in interface Media
      Returns:
      mime type
    • getContent

      public byte[] getContent()
      Description copied from interface: Media
      Media content
      Specified by:
      getContent in interface Media
      Returns:
      media as byte[]
    • getBase64Content

      public String getBase64Content()
      Description copied from interface: Media
      Base64 encoded media content
      Specified by:
      getBase64Content in interface Media
      Returns:
      media as Base64 encoded String