public class CompositeKeyLocator extends Object implements KeyLocator, Iterable<Key>
KeyLocator that represents a list of multiple KeyLocators. Key is searched
from the first to the last KeyLocator in the order given by the list. If there are
multiple KeyLocators providing key with the same key ID, the first matching key is
returned.| Constructor and Description |
|---|
CompositeKeyLocator() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(KeyLocator keyLocator)
Registers a given
KeyLocator as the last KeyLocator. |
void |
addFirst(KeyLocator keyLocator)
Registers a given
KeyLocator as the first KeyLocator. |
void |
clear()
Clears the list of registered
KeyLocators |
Key |
getKey(String kid)
Returns a key with a particular ID.
|
Iterator<Key> |
iterator() |
void |
refreshKeyCache()
If this key locator caches keys in any way, forces this cache cleanup
and refreshing the keys.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Key getKey(String kid) throws KeyManagementException
KeyLocatorgetKey in interface KeyLocatorkid - Key IDKeyManagementExceptionpublic void refreshKeyCache()
KeyLocatorrefreshKeyCache in interface KeyLocatorpublic void addFirst(KeyLocator keyLocator)
KeyLocator as the first KeyLocator.public void add(KeyLocator keyLocator)
KeyLocator as the last KeyLocator.public void clear()
KeyLocatorsCopyright © 2021 JBoss by Red Hat. All rights reserved.