public class SamlDescriptorPublicKeyLocator extends Object implements KeyLocator, Iterable<PublicKey>
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.| Constructor and Description |
|---|
SamlDescriptorPublicKeyLocator(String descriptorUrl,
int minTimeBetweenDescriptorRequests,
int cacheEntryTtl,
org.apache.http.client.HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
Key |
getKey(String kid) |
Iterator<PublicKey> |
iterator() |
void |
refreshKeyCache() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SamlDescriptorPublicKeyLocator(String descriptorUrl, int minTimeBetweenDescriptorRequests, int cacheEntryTtl, org.apache.http.client.HttpClient httpClient)
public Key getKey(String kid) throws KeyManagementException
getKey in interface KeyLocatorKeyManagementExceptionpublic void refreshKeyCache()
refreshKeyCache in interface KeyLocatorCopyright © 2021 JBoss by Red Hat. All rights reserved.