refactor permission names
This commit is contained in:
2
sign.go
2
sign.go
@@ -124,7 +124,7 @@ func main() {
|
||||
Date: time.Now().Local(),
|
||||
},
|
||||
CertType: sign.CertificationSignature,
|
||||
DocMDPPerm: sign.AllowFillingExistingFormFieldsAndSignatures,
|
||||
DocMDPPerm: sign.AllowFillingExistingFormFieldsAndSignaturesPerms,
|
||||
},
|
||||
Signer: pkey,
|
||||
Certificate: cert,
|
||||
|
@@ -39,7 +39,7 @@ func TestCreateInfoEmpty(t *testing.T) {
|
||||
Date: time.Now().Local(),
|
||||
},
|
||||
CertType: CertificationSignature,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignatures,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignaturesPerms,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ func TestCreateInfo(t *testing.T) {
|
||||
Date: time.Now().Local(),
|
||||
},
|
||||
CertType: CertificationSignature,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignatures,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignaturesPerms,
|
||||
},
|
||||
}
|
||||
|
||||
|
@@ -41,7 +41,7 @@ func TestCreateSignature(t *testing.T) {
|
||||
Date: now,
|
||||
},
|
||||
CertType: CertificationSignature,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignatures,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignaturesPerms,
|
||||
},
|
||||
}
|
||||
|
||||
|
@@ -41,7 +41,7 @@ func TestVisualSignature(t *testing.T) {
|
||||
Date: now,
|
||||
},
|
||||
CertType: CertificationSignature,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignatures,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignaturesPerms,
|
||||
},
|
||||
}
|
||||
|
||||
|
@@ -63,8 +63,8 @@ const (
|
||||
|
||||
const (
|
||||
DoNotAllowAnyChangesPerms = iota + 1
|
||||
AllowFillingExistingFormFieldsAndSignatures
|
||||
AllowFillingExistingFormFieldsAndSignaturesAndCRUDAnnotations
|
||||
AllowFillingExistingFormFieldsAndSignaturesPerms
|
||||
AllowFillingExistingFormFieldsAndSignaturesAndCRUDAnnotationsPerms
|
||||
)
|
||||
|
||||
type SignDataSignatureInfo struct {
|
||||
|
@@ -181,7 +181,7 @@ func TestSignPDF(t *testing.T) {
|
||||
Date: time.Now().Local(),
|
||||
},
|
||||
CertType: CertificationSignature,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignatures,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignaturesPerms,
|
||||
},
|
||||
Signer: pkey,
|
||||
Certificate: cert,
|
||||
@@ -254,7 +254,7 @@ func TestSignPDFFile(t *testing.T) {
|
||||
Date: time.Now().Local(),
|
||||
},
|
||||
CertType: CertificationSignature,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignatures,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignaturesPerms,
|
||||
},
|
||||
Signer: pkey,
|
||||
Certificate: cert,
|
||||
@@ -333,7 +333,7 @@ func BenchmarkSignPDF(b *testing.B) {
|
||||
Date: time.Now().Local(),
|
||||
},
|
||||
CertType: CertificationSignature,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignatures,
|
||||
DocMDPPerm: AllowFillingExistingFormFieldsAndSignaturesPerms,
|
||||
},
|
||||
Signer: pkey,
|
||||
Certificate: cert,
|
||||
|
Reference in New Issue
Block a user