Class LazyClientIdentityIterator

java.lang.Object
org.apache.sshd.client.config.keys.LazyClientIdentityIterator
All Implemented Interfaces:
Iterator<KeyPair>

public class LazyClientIdentityIterator extends Object implements Iterator<KeyPair>
Wraps several 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.