Class JWKPublicKeyLocator

    • Field Detail

      • lastRequestTime

        private volatile int lastRequestTime
    • Constructor Detail

      • JWKPublicKeyLocator

        JWKPublicKeyLocator()
    • Method Detail

      • reset

        public void reset​(OidcClientConfiguration oidcClientConfiguration)
        Description copied from interface: PublicKeyLocator
        Reset the state of locator (eg. clear the cached keys)
        Specified by:
        reset in interface PublicKeyLocator
        Parameters:
        oidcClientConfiguration - the OpenID Connect client configuration
      • lookupCachedKey

        private PublicKey lookupCachedKey​(int publicKeyCacheTtl,
                                          int currentTime,
                                          String kid)
      • getCurrentTime

        private static int getCurrentTime()