PDFDocMDPPermissions.java
951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.internal.pdftoolkit.pdf.digsig;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public enum PDFDocMDPPermissions {
NoChanges(1, "NoChanges"),
FormChanges(2, "FormChanges"),
AnnotationFormChanges(3, "AnnotationFormChanges");
private int value;
private String permsStr = null;
private PDFDocMDPPermissions(int val, String permsStr) {
this.value = val;
this.permsStr = permsStr;
}
public static PDFDocMDPPermissions getInstance(int val) {
switch (val) {
case 2: {
return FormChanges;
}
case 3: {
return AnnotationFormChanges;
}
}
return NoChanges;
}
public int getValue() {
return this.value;
}
public String toString() {
return this.permsStr;
}
}