1 package org.readium.r2_streamer.model.publication;
3 import java.io.Serializable;
7 * Created by gautam chibde on 18/5/17.
10 public class Encryption implements Serializable {
11 private static final long serialVersionUID = 333647343242776147L;
13 private String scheme;
14 private String profile;
15 private String algorithm;
16 private String compression;
17 private int originalLength;
23 public String toString() {
24 return "Encryption{" +
25 "scheme='" + scheme + '\'' +
26 ", profile='" + profile + '\'' +
27 ", algorithm='" + algorithm + '\'' +
28 ", compression='" + compression + '\'' +
29 ", originalLength=" + originalLength +
33 public static Encryption getEncryptionFormFontFilePath(
35 List<Encryption> encryptions) {
36 for (Encryption encryption : encryptions) {
37 if (encryption.getProfile().equalsIgnoreCase(path)) {
44 public String getScheme() {
48 public void setScheme(String scheme) {
52 public String getProfile() {
56 public void setProfile(String profile) {
57 this.profile = profile;
60 public String getAlgorithm() {
64 public void setAlgorithm(String algorithm) {
65 this.algorithm = algorithm;
68 public String getCompression() {
72 public void setCompression(String compression) {
73 this.compression = compression;
76 public int getOriginalLength() {
77 return originalLength;
80 public void setOriginalLength(int originalLength) {
81 this.originalLength = originalLength;