Class JwtPublicKeyStore
- java.lang.Object
-
- fish.payara.microprofile.jwtauth.eesecurity.JwtPublicKeyStore
-
public class JwtPublicKeyStore extends Object
-
-
Constructor Summary
Constructors Constructor Description JwtPublicKeyStore(Duration defaultCacheTTL)
JwtPublicKeyStore(Duration defaultCacheTTL, Optional<String> keyLocation)
-
-
-
Constructor Detail
-
JwtPublicKeyStore
public JwtPublicKeyStore(Duration defaultCacheTTL)
- Parameters:
defaultCacheTTL
- Public key cache TTL
-
-
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
-
-