This commit is contained in:
emilienbondu 2017-11-09 17:28:55 +01:00 committed by Stian Thorgersen
parent 128ff12f8f
commit 8b8e694c60

View file

@ -81,7 +81,7 @@ public class JWKPublicKeyLocator implements PublicKeyLocator {
private PublicKey lookupCachedKey(int publicKeyCacheTtl, int currentTime, String kid) { private PublicKey lookupCachedKey(int publicKeyCacheTtl, int currentTime, String kid) {
if (lastRequestTime + publicKeyCacheTtl > currentTime) { if (lastRequestTime + publicKeyCacheTtl > currentTime && kid != null) {
return currentKeys.get(kid); return currentKeys.get(kid);
} else { } else {
return null; return null;