Class JwkManager


  • class JwkManager
    extends Object
    Object for caching RSA JSON Web Keys for signature validation
    Author:
    Martin Mazanek
    • Field Detail

      • updateTimeout

        private final long updateTimeout
      • minTimeBetweenRequests

        private final int minTimeBetweenRequests
      • connectionTimeout

        private final int connectionTimeout
      • readTimeout

        private final int readTimeout
    • Constructor Detail

      • JwkManager

        JwkManager​(SSLContext sslContext,
                   HostnameVerifier hostnameVerifier,
                   long updateTimeout,
                   int connectionTimeout,
                   int readTimeout,
                   int minTimeBetweenRequests)
    • Method Detail

      • getPublicKey

        public PublicKey getPublicKey​(String kid,
                                      URL url)
        Thread-safe method for receiving remote public key
        Parameters:
        kid - key id
        url - remote jkws url
        Returns:
        signature verification public key if found, null otherwise