Package com.castlabs

Interface LicenseLoader

All Known Implementing Classes:
AssetLicenseLoader, ManifestLicenseLoader, SimpleLicenseLoader

public interface LicenseLoader
An implementation of this interface is used to fetch the castlabs license file and return its data.

Note that getLicenseData() might be called multiple times so implementation should make sure that values are cached.
Since:
3.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    This method must find the license file and return its bytes or throw an Exception if the license data could not be loaded.
  • Method Details

    • getLicenseData

      byte[] getLicenseData() throws Exception
      This method must find the license file and return its bytes or throw an Exception if the license data could not be loaded.
      Returns:
      license the byte representation of the license file
      Throws:
      Exception - in case the license data could not be loaded