Class JwtPublicKeyStore


  • public class JwtPublicKeyStore
    extends Object
    • Constructor Detail

      • JwtPublicKeyStore

        public JwtPublicKeyStore​(Duration defaultCacheTTL)
        Parameters:
        defaultCacheTTL - Public key cache TTL
      • JwtPublicKeyStore

        public JwtPublicKeyStore​(Duration defaultCacheTTL,
                                 Optional<String> keyLocation)
        Parameters:
        defaultCacheTTL - Public key cache TTL
        keyLocation - location of the public key
    • Method Detail

      • getPublicKey

        public PublicKey getPublicKey​(String keyID)
        Parameters:
        keyID - The JWT key ID or null if no key ID was provided
        Returns:
        Public key that can be used to verify the JWT
        Throws:
        IllegalStateException - if no public key was found