Package com.castlabs

Class SimpleLicenseLoader

java.lang.Object
com.castlabs.SimpleLicenseLoader
All Implemented Interfaces:
LicenseLoader

public class SimpleLicenseLoader extends Object implements LicenseLoader
Implementation of the LicenseLoader that will return license data as passed in the constructor.
Since:
3.3.0
See Also:
  • Constructor Details

    • SimpleLicenseLoader

      public SimpleLicenseLoader(@NonNull String licenseData)
      Creates a new instance of this license loader.
      Parameters:
      licenseData - The license data to be returned by this loader.
    • SimpleLicenseLoader

      public SimpleLicenseLoader(@NonNull byte[] licenseData)
      Creates a new instance of this license loader.
      Parameters:
      licenseData - The license data to be returned by this loader.
  • Method Details

    • getLicenseData

      public byte[] getLicenseData() throws Exception
      Returns the license data that was passed in the constructor.
      Specified by:
      getLicenseData in interface LicenseLoader
      Returns:
      The license data.
      Throws:
      Exception - If an error occurs.