Package 

Interface ContentProtection

  • All Implemented Interfaces:

    
    public interface ContentProtection
    
                        

    Bridge between a Content Protection technology and the Readium toolkit.

    Its responsibilities are to:

    • Constructor Detail

    • 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.