Skip to content

Commit

Permalink
Merge pull request #484 from slovensko-digital/fix-en319132-pdfa-mixup
Browse files Browse the repository at this point in the history
fix order of en319132 and pdfa bool parameters
  • Loading branch information
celuchmarek authored Jul 9, 2024
2 parents a88d439 + 1242d71 commit 013c163
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/digital/slovensko/autogram/core/SigningJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ private static SigningParameters getParametersForFile(FileDocument document, boo
case PAdES:
return SigningParameters.buildForPDF(document, checkPDFACompliance, isEn319132, tspSource);
case XAdES:
return SigningParameters.buildForASiCWithXAdES(document, isEn319132, checkPDFACompliance, tspSource, plainXmlEnabled);
return SigningParameters.buildForASiCWithXAdES(document, checkPDFACompliance, isEn319132, tspSource, plainXmlEnabled);
case CAdES:
return SigningParameters.buildForASiCWithCAdES(document, isEn319132, checkPDFACompliance, tspSource, plainXmlEnabled);
return SigningParameters.buildForASiCWithCAdES(document, checkPDFACompliance, isEn319132, tspSource, plainXmlEnabled);
default:
;
}
Expand All @@ -210,14 +210,14 @@ private static SigningParameters getParametersForFile(FileDocument document, boo
case PAdES_BASELINE_B:
return SigningParameters.buildForPDF(document, checkPDFACompliance, isEn319132, tspSource);
case XAdES_BASELINE_B:
return SigningParameters.buildForASiCWithXAdES(document, isEn319132, checkPDFACompliance, tspSource, plainXmlEnabled);
return SigningParameters.buildForASiCWithXAdES(document, checkPDFACompliance, isEn319132, tspSource, plainXmlEnabled);
case CAdES_BASELINE_B:
return SigningParameters.buildForASiCWithCAdES(document, isEn319132, checkPDFACompliance, tspSource, plainXmlEnabled);
return SigningParameters.buildForASiCWithCAdES(document, checkPDFACompliance, isEn319132, tspSource, plainXmlEnabled);
default:
;
}

return SigningParameters.buildForASiCWithXAdES(document, isEn319132, checkPDFACompliance, tspSource, plainXmlEnabled);
return SigningParameters.buildForASiCWithXAdES(document, checkPDFACompliance, isEn319132, tspSource, plainXmlEnabled);
}

public boolean shouldCheckPDFCompliance() {
Expand Down

0 comments on commit 013c163

Please sign in to comment.