sshd-common/src/main/java/org/apache/sshd/client/config/keys/LazyClientIdentityIterator.java [111:134]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            return true;
        }

        finished = true;
        return false;
    }

    @Override
    public KeyPair next() {
        if (finished) {
            throw new NoSuchElementException("All identities have been exhausted");
        }

        if (currentPair == null) {
            throw new IllegalStateException("'next()' called without asking 'hasNext()'");
        }

        KeyPair kp = currentPair;
        currentPair = null;
        return kp;
    }

    @Override
    public String toString() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sshd-common/src/main/java/org/apache/sshd/client/config/keys/LazyClientKeyIdentityProvider.java [117:140]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                        return true;
                    }
                }

                finished = true;
                return false;
            }

            @Override
            public KeyPair next() {
                if (finished) {
                    throw new NoSuchElementException("All identities have been exhausted");
                }
                if (currentPair == null) {
                    throw new IllegalStateException("'next()' called without asking 'hasNext()'");
                }

                KeyPair kp = currentPair;
                currentPair = null;
                return kp;
            }

            @Override
            public String toString() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



