-
- All Implemented Interfaces:
public interface ContentProtectionBridge between a Content Protection technology and the Readium toolkit.
Its responsibilities are to:
Unlock a publication by returning a customized Fetcher.
Create a ContentProtectionService publication service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classContentProtection.ProtectedAssetHolds the result of opening a PublicationAsset with a ContentProtection.
public final classContentProtection.SchemeRepresents a specific Content Protection technology, uniquely identified with an uri.
public classContentProtection.Exception
-
Method Summary
Modifier and Type Method Description abstract Try<ContentProtection.ProtectedAsset, Publication.OpeningException>open(PublicationAsset asset, Fetcher fetcher, String credentials, Boolean allowUserInteraction, Object sender)Attempts to unlock a potentially protected publication asset. -
-
Method Detail
-
open
abstract Try<ContentProtection.ProtectedAsset, Publication.OpeningException> open(PublicationAsset asset, Fetcher fetcher, String credentials, Boolean allowUserInteraction, Object sender)
Attempts to unlock a potentially protected publication asset.
The Streamer will create a leaf fetcher for the low-level asset access (e.g. ArchiveFetcher for a ZIP archive), to avoid having each Content Protection open the asset to check if it's protected or not.
A publication might be protected in such a way that the package format can't be recognized, in which case the Content Protection will have the responsibility of creating a new leaf Fetcher.
-
-
-
-