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() |
protected java.lang.Iterable<KeyAgentIdentity> |
initializeAgentIdentities(ClientSession session) |
protected java.lang.Iterable<KeyPairIdentity> |
initializeSessionIdentities(ClientSession session,
SignatureFactoriesManager signatureFactories) |
boolean |
isOpen() |
PublicKeyIdentity |
next() |
getClientSession, getSession, remove, toStringprivate 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.Exceptionprotected java.lang.Iterable<KeyPairIdentity> initializeSessionIdentities(ClientSession session, SignatureFactoriesManager signatureFactories)
protected java.lang.Iterable<KeyAgentIdentity> initializeAgentIdentities(ClientSession session) throws java.io.IOException
java.io.IOExceptionpublic 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.Channelpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionprotected void closeAgent()
throws java.io.IOException
java.io.IOException