public class UserAuthPublicKeyIterator extends AbstractKeyPairIterator<PublicKeyIdentity> implements java.nio.channels.Channel
Modifier and Type | Field and Description |
---|---|
private SshAgent |
agent |
private java.util.Iterator<? extends PublicKeyIdentity> |
current |
private java.util.concurrent.atomic.AtomicBoolean |
open |
Constructor and Description |
---|
UserAuthPublicKeyIterator(ClientSession session,
SignatureFactoriesManager signatureFactories) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
closeAgent() |
boolean |
hasNext() |
boolean |
isOpen() |
PublicKeyIdentity |
next() |
getClientSession, getSession, remove, toString
private final java.util.concurrent.atomic.AtomicBoolean open
private java.util.Iterator<? extends PublicKeyIdentity> current
private SshAgent agent
public UserAuthPublicKeyIterator(ClientSession session, SignatureFactoriesManager signatureFactories) throws java.lang.Exception
java.lang.Exception
public boolean hasNext()
hasNext
in interface java.util.Iterator<PublicKeyIdentity>
public PublicKeyIdentity next()
next
in interface java.util.Iterator<PublicKeyIdentity>
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
java.io.IOException
protected void closeAgent() throws java.io.IOException
java.io.IOException