We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3f899 commit 383934eCopy full SHA for 383934e
src/main/java/eu/webeid/security/validator/AuthTokenValidatorManager.java
@@ -35,6 +35,7 @@
35
36
import java.io.IOException;
37
import java.security.cert.X509Certificate;
38
+import java.util.Objects;
39
40
/**
41
* Provides the default implementation of {@link AuthTokenValidator}.
@@ -72,6 +73,7 @@ public WebEidAuthToken parse(String authToken) throws AuthTokenException {
72
73
@Override
74
public X509Certificate validate(WebEidAuthToken authToken, String currentChallengeNonce) throws AuthTokenException {
75
try {
76
+ Objects.requireNonNull(authToken, "authToken must not be null");
77
LOG.info("Starting token validation");
78
return tokenValidatorFactory
79
.getValidatorFor(authToken.getFormat())
0 commit comments