Class ImageInfo

java.lang.Object
com.atlassian.crowd.util.ImageInfo

public class ImageInfo extends Object
Class represents information about image based on it's data URL
  • Constructor Details

    • ImageInfo

      public ImageInfo()
    • ImageInfo

      public ImageInfo(String name, String imageBase64, String extension)
  • Method Details

    • fromImageData

      public static Optional<ImageInfo> fromImageData(String imageData)
      Extracts base64 encoded image data to the ImageInfo
      Parameters:
      imageData - base64 encoded image (e.g. data:image/png;base64, iVBORw0KG...==)
      Returns:
      Image info or empty
    • getName

      public String getName()
    • getImageBase64

      public String getImageBase64()
    • getExtension

      public String getExtension()
    • setExtension

      public void setExtension(String extension)
    • setImageBase64

      public void setImageBase64(String imageBase64)
    • setName

      public void setName(String name)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object