# Class: `Licenses` [@jupyterlite/licenses](../modules/jupyterlite_licenses.md).Licenses A JupyterLite implementation of the jupyterlab_server licenses route ## Implements - [`ILicenses`](../modules/jupyterlite_licenses.md#ilicenses) ## Constructors ### `constructor` > > **`new Licenses`**() ## Accessors ### `appLicensesUrl` > > `Protected` `get` **`appLicensesUrl`**(): `string` Get the well-known URL of the app licenses. #### Returns `string` #### Defined in [packages/licenses/src/licenses.ts:47](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/licenses/src/licenses.ts#L47) ### `appName` > > `Protected` `get` **`appName`**(): `string` Get the app name (or default). #### Returns `string` #### Defined in [packages/licenses/src/licenses.ts:40](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/licenses/src/licenses.ts#L40) ### `labExtensionsUrl` > > `Protected` `get` **`labExtensionsUrl`**(): `string` Get the lab extension base url. #### Returns `string` #### Defined in [packages/licenses/src/licenses.ts:54](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/licenses/src/licenses.ts#L54) ## Methods ### `_getAppLicenses` > > **`_getAppLicenses`**(): `Promise`<[`ILicenseBundle`](../interfaces/jupyterlite_licenses.ILicenseBundle.md)\> Resolve the licenses for the app distribution itself, or the empty bundle. #### Returns `Promise`<[`ILicenseBundle`](../interfaces/jupyterlite_licenses.ILicenseBundle.md)\> #### Defined in [packages/licenses/src/licenses.ts:61](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/licenses/src/licenses.ts#L61) ### `_getFederated` > > **`_getFederated`**(): `Promise`<[`ILicenseBundles`](../interfaces/jupyterlite_licenses.ILicenseBundles.md)\> Resolve the licenses for all federated extensions. #### Returns `Promise`<[`ILicenseBundles`](../interfaces/jupyterlite_licenses.ILicenseBundles.md)\> #### Defined in [packages/licenses/src/licenses.ts:77](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/licenses/src/licenses.ts#L77) ### `_getOneFederated` > > **`_getOneFederated`**(`ext`, `bundles`): `Promise`<`void`\> Update the bundles with the extension's licenses, or the empty bundle. #### Parameters | Name | Type | | :------ | :------ | | `ext` | `IFederatedExtension` | | `bundles` | [`ILicenseBundles`](../interfaces/jupyterlite_licenses.ILicenseBundles.md) | #### Returns `Promise`<`void`\> #### Defined in [packages/licenses/src/licenses.ts:105](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/licenses/src/licenses.ts#L105) ### `get` > > **`get`**(): `Promise`<[`ILicenseResponse`](../interfaces/jupyterlite_licenses.ILicenseResponse.md)\> A GET handler for the licenses #### Returns `Promise`<[`ILicenseResponse`](../interfaces/jupyterlite_licenses.ILicenseResponse.md)\> #### Implementation of ILicenses.get #### Defined in [packages/licenses/src/licenses.ts:28](https://github.com/jupyterlite/jupyterlite/blob/999c7f0/packages/licenses/src/licenses.ts#L28)