Class SamlDescriptorPublicKeyLocator
java.lang.Object
org.keycloak.adapters.saml.rotation.SamlDescriptorPublicKeyLocator
- All Implemented Interfaces:
Iterable<Key>,KeyLocator
This class defines a
KeyLocator that looks up public keys and certificates in IdP's
SAML descriptor (i.e. http://{host}/auth/realms/{realm}/protocol/saml/descriptor).
Based on JWKPublicKeyLocator.- Author:
- hmlnarik
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.rotation.KeyLocator
KeyLocator.KeyHash -
Constructor Summary
ConstructorsConstructorDescriptionSamlDescriptorPublicKeyLocator(String descriptorUrl, int minTimeBetweenDescriptorRequests, int cacheEntryTtl, org.apache.http.client.HttpClient httpClient) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.keycloak.rotation.KeyLocator
getKey
-
Constructor Details
-
SamlDescriptorPublicKeyLocator
public SamlDescriptorPublicKeyLocator(String descriptorUrl, int minTimeBetweenDescriptorRequests, int cacheEntryTtl, org.apache.http.client.HttpClient httpClient)
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceKeyLocator- Throws:
KeyManagementException
-
getKey
- Specified by:
getKeyin interfaceKeyLocator- Throws:
KeyManagementException
-
refreshKeyCache
public void refreshKeyCache()- Specified by:
refreshKeyCachein interfaceKeyLocator
-
toString
-
iterator
-