-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: sign protected pdfs #498
Open
xhyrom
wants to merge
42
commits into
slovensko-digital:main
Choose a base branch
from
xhyrom-forks:feat/sign-protected-pdfs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 24 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
ff84ad3
feat: initial implementation of signing protected pdfs
xhyrom 6d00beb
feat: allow protected pdfs in batch
xhyrom 84a311f
fix: proxy asic original document instead casting
xhyrom 6eed34d
fix: tests
xhyrom aad94b7
fix: run callback, default pass
xhyrom bb7c5a1
fix: check if creating signature field is possible
xhyrom acb36d4
refactor: change place where we're asking for password
xhyrom 11ef8b9
fix: tests
xhyrom 553dd41
refactor: autogram document, split passwords
xhyrom 9d07e15
add comment explaining PDF/A encryption
xhyrom 83bd4df
feat: show document name while unlocking
xhyrom e74a283
fix: tests
xhyrom 065f674
fix: pasword controller constructor
xhyrom 56cc58a
fix: document name can be empty
xhyrom 2778cb2
fix: handle protected pdf in sign endpoint before validation
xhyrom f8a4f77
fix: password dialog
xhyrom a8770c1
refactor: AutogramDocument#getDSSDocument
xhyrom a8a2b5d
refactor: remove Autogram from buildFromRequest
xhyrom cf8473c
fix: PDF/A compliant check
xhyrom ff4eca7
refactor: wrap to hasOpenDocumentPassword
xhyrom 3c03aef
fix: errors
xhyrom 2940dff
style: change invalid pass subheading
xhyrom 762b7b9
fix :tests
xhyrom 72d3337
revert: revert some modifiers
xhyrom 39279d1
refactor(AutogramDocument): dont use this
xhyrom d6660e1
mv buildSigningJobFromFile to Autogram
celuchmarek 0a38cb2
Revert "mv buildSigningJobFromFile to Autogram"
celuchmarek 1a51bca
Revert "Revert "mv buildSigningJobFromFile to Autogram""
celuchmarek d936977
lock ubuntu runner version
celuchmarek 6f99e22
bump gh actions
celuchmarek a5d5899
temp rm cache from gh actions
celuchmarek 7d94479
bump jdk minor version
celuchmarek 1cc94b5
use system jdk in github actions
celuchmarek 6c15d52
use debug logging in gh actions
celuchmarek e587086
commit classpath
celuchmarek 5a1a71e
add full stack trace gh actions
celuchmarek 0df85f7
ignore classpath
celuchmarek b846984
Merge branch 'main' into feat/sign-protected-pdfs
celuchmarek eebceae
Revert "use system jdk in github actions"
celuchmarek 5266922
revert liberica version
celuchmarek c064992
fix compilation error
celuchmarek a0a9e42
make test pipeline faster
celuchmarek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/digital/slovensko/autogram/core/errors/InvalidPasswordException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package digital.slovensko.autogram.core.errors; | ||
|
||
public class InvalidPasswordException extends AutogramException { | ||
public InvalidPasswordException(String message) { | ||
super("Nesprávne heslo", "Heslo je nesprávne", message); | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ešte uvažujem, či sa neplatí vyrobiť pre tento prípad inú hlášku. Prípadne vedieť do toho
onPDFAComplianceCheckFailed
poslať ešte AutogramException, na základe ktorej sa zobrazí taký alebo onaký text. Totiž, pri tomto hesle má zmysel povedať userovi konkrétne, že nie len že dokument nie je v súlade s PDF/A, ale je to práva preto, že je zaheslovaný.