Package org.keycloak.adapters.rotation
Class JWKPublicKeyLocator
java.lang.Object
org.keycloak.adapters.rotation.JWKPublicKeyLocator
- All Implemented Interfaces:
PublicKeyLocator
When needed, publicKeys are downloaded by sending request to realm's jwks_url
- Author:
- Marek Posolda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPublicKey
(String kid, KeycloakDeployment deployment) void
reset
(KeycloakDeployment deployment) Reset the state of locator (eg.
-
Constructor Details
-
JWKPublicKeyLocator
public JWKPublicKeyLocator()
-
-
Method Details
-
getPublicKey
- Specified by:
getPublicKey
in interfacePublicKeyLocator
- Returns:
- publicKey, which should be used for verify signature on given "input"
-
reset
Description copied from interface:PublicKeyLocator
Reset the state of locator (eg. clear the cached keys)- Specified by:
reset
in interfacePublicKeyLocator
-