# Functions
AddContent adds content to the storage lcp spec : store data resulting from an external encryption PUT method with PAYLOAD : encrypted publication in json format This method adds an encrypted file to a store and adds the corresponding decryption key to the database.
DecodeJSONLicense decodes a license formatted in json and returns a license object.
DeleteContent deletes a record.
GenerateLicense generates and returns a new license, for a given content identified by its id plus a partial license given as input.
GenerateProtectedPublication generates and returns a protected publication for a given content identified by its id plus a partial license given as input.
GetContent fetches and returns an encrypted content file selected by it content id (uuid) This should be called only if the License Server stores the file.
GetLicense returns an existing license, selected by a license id and a partial license both given as input.
GetProtectedPublication returns a protected publication for a given license identified by its id plus a partial license given as input.
GetTestLicense returns an existing license, selected by a license id and a partial license set to the last information generated on this server.
ListContents lists the content in the storage index.
ListLicenses returns a JSON struct with information about the existing licenses parameters:
page: page number per_page: number of items par page.
ListLicensesForContent lists all licenses associated with a given content parameters:
content_id: content identifier page: page number (default 1) per_page: number of items par page (default 30).
StoreContent stores content passed through the request body into the storage.
UpdateLicense updates an existing license.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrBadHexValue sets an error message returned to the caller.
ErrBadValue sets an error message returned to the caller.
ErrMandatoryInfoMissing sets an error message returned to the caller.
# Interfaces
Server groups functions used by the lcp server.