Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FIT-Connect-SDK - Java
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
FIT-Connect-SDK - Java
Commits
9db92581
Commit
9db92581
authored
2 years ago
by
Henry Borasch
Browse files
Options
Downloads
Patches
Plain Diff
make JWKValidator throw always exceptions if something fails
parent
1e8ccf22
No related branches found
No related tags found
2 merge requests
!143
901 - More precise Validations with `JWKValidator`
,
!117
Feature/808 validate root certificates
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/dev/fitko/fitconnect/core/validation/DefaultValidationService.java
+1
-5
1 addition, 5 deletions
.../fitconnect/core/validation/DefaultValidationService.java
with
1 addition
and
5 deletions
core/src/main/java/dev/fitko/fitconnect/core/validation/DefaultValidationService.java
+
1
−
5
View file @
9db92581
...
@@ -213,11 +213,7 @@ public class DefaultValidationService implements ValidationService {
...
@@ -213,11 +213,7 @@ public class DefaultValidationService implements ValidationService {
}
}
private
JWKValidator
addLogLevel
(
final
JWKValidatorBuilder
.
JWKValidatorX5CErrorHandling
validator
)
{
private
JWKValidator
addLogLevel
(
final
JWKValidatorBuilder
.
JWKValidatorX5CErrorHandling
validator
)
{
if
(
config
.
getCurrentEnvironment
().
isAllowInsecurePublicKey
())
{
return
validator
.
withThrowingExceptions
().
withErrorLogLevel
(
LogLevel
.
ERROR
).
build
();
return
validator
.
withoutThrowingExceptions
().
withErrorLogLevel
(
LogLevel
.
WARN
).
build
();
}
else
{
return
validator
.
withThrowingExceptions
().
withErrorLogLevel
(
LogLevel
.
ERROR
).
build
();
}
}
}
private
void
validateWithoutCertChain
(
final
RSAKey
publicKey
,
final
KeyOperation
purpose
)
throws
JWKValidationException
{
private
void
validateWithoutCertChain
(
final
RSAKey
publicKey
,
final
KeyOperation
purpose
)
throws
JWKValidationException
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment