Skip to content

Commit b9f7866

Browse files
authored
Use the official LCP ContentProtection scheme (#117)
1 parent 4df5df0 commit b9f7866

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readium/lcp/r2-lcp/src/main/java/org/readium/r2/lcp/LcpContentProtectionService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
package org.readium.r2.lcp
1111

12+
import org.readium.r2.shared.publication.ContentProtection
1213
import org.readium.r2.shared.publication.LocalizedString
1314
import org.readium.r2.shared.publication.Publication
1415
import org.readium.r2.shared.publication.services.ContentProtectionService
@@ -22,7 +23,7 @@ class LcpContentProtectionService(val license: LcpLicense?, override val error:
2223
override val rights: ContentProtectionService.UserRights = license
2324
?: ContentProtectionService.UserRights.AllRestricted
2425

25-
override val name: LocalizedString = LocalizedString("Readium LCP")
26+
override val scheme = ContentProtection.Scheme.Lcp
2627

2728
companion object {
2829

0 commit comments

Comments
 (0)