This commit is contained in:
parent
128ff12f8f
commit
8b8e694c60
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue