Top Description Fields Constructors Methods
org.apache.sshd.common.keyprovider

public Class MultiKeyIdentityIterator

extends Object
implements Iterator<KeyPair>, SessionContextHolder
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.session.SessionContextHolder, java.util.Iterator
Imports
java.io.IOException, java.security.GeneralSecurityException, .KeyPair, java.util.Iterator, .NoSuchElementException, org.apache.sshd.common.session.SessionContext, .SessionContextHolder

Iterates over several KeyIdentityProvider-s exhausting their keys one by one (lazily).
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
protected Iterator<KeyPair>
protected boolean
private final Iterator<? extends KeyIdentityProvider>
private final SessionContext

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Iterator<? extends KeyIdentityProvider>
public SessionContext
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.

public KeyPair
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentProviderback to summary
protected Iterator<KeyPair> currentProvider
finishedback to summary
protected boolean finished
providersback to summary
private final Iterator<? extends KeyIdentityProvider> providers
sessionContextback to summary
private final SessionContext sessionContext

Constructor Detail

MultiKeyIdentityIteratorback to summary
public MultiKeyIdentityIterator(SessionContext session, Iterable<? extends KeyIdentityProvider> providers)

Method Detail

getProvidersback to summary
public Iterator<? extends KeyIdentityProvider> getProviders()
getSessionContextback to summary
public SessionContext getSessionContext()

Implements org.apache.sshd.common.session.SessionContextHolder.getSessionContext.

Annotations
@Override
hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:boolean

true if the iteration has more elements

Annotations
@Override
nextback to summary
public KeyPair next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Returns:KeyPair

the next element in the iteration

Annotations
@Override