public class CompositeKeyLocator extends Object implements KeyLocator, Iterable<Key>
KeyLocator
that represents a list of multiple KeyLocator
s. Key is searched
from the first to the last KeyLocator
in the order given by the list. If there are
multiple KeyLocator
s 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
KeyLocator s |
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, wait
forEach, spliterator
public Key getKey(String kid) throws KeyManagementException
KeyLocator
getKey
in interface KeyLocator
kid
- Key IDKeyManagementException
public void refreshKeyCache()
KeyLocator
refreshKeyCache
in interface KeyLocator
public void addFirst(KeyLocator keyLocator)
KeyLocator
as the first KeyLocator
.public void add(KeyLocator keyLocator)
KeyLocator
as the last KeyLocator
.public void clear()
KeyLocator
sCopyright © 2021 JBoss by Red Hat. All rights reserved.