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
ConstructorDescriptionSamlDescriptorPublicKeyLocator
(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, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:
getKey
in interfaceKeyLocator
- Throws:
KeyManagementException
-
getKey
- Specified by:
getKey
in interfaceKeyLocator
- Throws:
KeyManagementException
-
refreshKeyCache
public void refreshKeyCache()- Specified by:
refreshKeyCache
in interfaceKeyLocator
-
toString
-
iterator
-