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:
    `PlayerSDK.init(Context, LicenseLoader)`

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SimpleLicenseLoader​(byte[] licenseData)` |
    `SimpleLicenseLoader​(String licenseData)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `byte[]` | `getLicenseData()` | This method must find the license file and return its bytes or throw an Exception if the license data could not be loaded.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SimpleLicenseLoader

          public SimpleLicenseLoader​(@NonNull
                                     String licenseData)

    - #### SimpleLicenseLoader

          public SimpleLicenseLoader​(@NonNull
                                     byte[] licenseData)

  - ### Method Detail

    - #### getLicenseData

          public byte[] getLicenseData()
                                throws Exception

      Description copied from interface: `LicenseLoader`
      This method must find the license file and return its bytes or throw an Exception if the license data could not be loaded.
      Specified by:
        `getLicenseData` in interface `LicenseLoader`
      Returns:
        license the byte representation of the license file
      Throws:
        `Exception` - in case the license data could not be loaded