Skip to content
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

Make signature level in API optional for signed documents #448

Merged
merged 4 commits into from
May 27, 2024

Conversation

celuchmarek
Copy link
Member

No description provided.

@celuchmarek celuchmarek requested a review from jsuchal May 24, 2024 13:50
@@ -25,6 +25,7 @@ public void handle(HttpExchange exchange) throws IOException {
try {
var body = EndpointUtils.loadFromJsonExchange(exchange, SignRequestBody.class);
body.validateDocument();
body.resolveSigningLevel();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nedava zmysel tuto metodu strcit interne do validateSigningParameters? pride mi to taky temporal coupling, ze ked to nezavolas tak sa to nebude spravat dobre.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

na druhej strane, od validate by som čakal, že nebude meniť ten objekt. Ale je pravda, že je to idempotentné, takže by to nemusel byť problém.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pravda, najvacsi zmysel by to davalo uplne hore niekde kde sa to body/parametre vyrabaju.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To áno, ale tieto classy sa vyrábajú trochu magicky cez ten gson parser a nechcel som ísť teraz do toho.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hej chapem, strcme to do toho validate zatial s nejakou poznamkou

@celuchmarek celuchmarek requested a review from jsuchal May 27, 2024 10:17
@celuchmarek celuchmarek merged commit 6c1e097 into main May 27, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants