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