ClientIdentityProvider into a KeyPair Iterator that invokes each provider
"lazily" - i.e., only when Iterator#hasNext() is invoked. This prevents password protected private
keys to be decrypted until they are actually needed.
| Modifier and Type | Field and Description |
|---|---|
| protected Iterator | |
| protected KeyPair | |
| private final Predicate | |
| protected boolean | |
| private final Function | |
| private final Iterator |
| Access | Constructor and Description |
|---|---|
| public | LazyClientIdentityIterator(Iterator<? extends ClientIdentityProvider>
The providers - ignored if providers, Function<? super ClientIdentityProvider, ? extends Iterable<KeyPair>> nullThe (never kpExtractor, Predicate<KeyPair> null) extractor of the KeyPair from the
ClientIdentityProvider argument. If returned pair is null then next provider
is queried.Any further filter to apply on (non- filter)null) key pairs before returning it as the
Iterator#next() result.
|
| Modifier and Type | Method and Description |
|---|---|
| public Predicate | |
| public Function | |
| public Iterator | |
| public boolean | |
| public KeyPair | |
| public String |
| currentIdentities | back to summary |
|---|---|
| protected Iterator<KeyPair> currentIdentities | |
| currentPair | back to summary |
|---|---|
| protected KeyPair currentPair | |
| filter | back to summary |
|---|---|
| private final Predicate<KeyPair> filter | |
| finished | back to summary |
|---|---|
| protected boolean finished | |
| kpExtractor | back to summary |
|---|---|
| private final Function<? super ClientIdentityProvider, ? extends Iterable<KeyPair>> kpExtractor | |
| providers | back to summary |
|---|---|
| private final Iterator<? extends ClientIdentityProvider> providers | |
| LazyClientIdentityIterator | back to summary |
|---|---|
public LazyClientIdentityIterator(Iterator<? extends ClientIdentityProvider> providers, Function<? super ClientIdentityProvider, ? extends Iterable<KeyPair>> kpExtractor, Predicate<KeyPair> filter)
| |
| getFilter | back to summary |
|---|---|
| public Predicate | |
| getIdentitiesExtractor | back to summary |
|---|---|
| public Function | |
| getProviders | back to summary |
|---|---|
| public Iterator | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public KeyPair next() Implements java. Doc from java. Returns the next element in the iteration. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |