Class SshAgentPublicKeyIterator
- java.lang.Object
-
- org.apache.sshd.client.auth.pubkey.AbstractKeyPairIterator<KeyAgentIdentity>
-
- org.apache.sshd.client.auth.pubkey.SshAgentPublicKeyIterator
-
- All Implemented Interfaces:
java.util.Iterator<KeyAgentIdentity>
,ClientSessionHolder
,SessionContextHolder
,SessionHolder<ClientSession>
public class SshAgentPublicKeyIterator extends AbstractKeyPairIterator<KeyAgentIdentity>
-
-
Constructor Summary
Constructors Constructor Description SshAgentPublicKeyIterator(ClientSession session, SshAgent agent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
KeyAgentIdentity
next()
-
Methods inherited from class org.apache.sshd.client.auth.pubkey.AbstractKeyPairIterator
getClientSession, getSession, remove, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
-
-
-
Field Detail
-
agent
private final SshAgent agent
-
keys
private final java.util.Iterator<? extends java.util.Map.Entry<java.security.PublicKey,java.lang.String>> keys
-
-
Constructor Detail
-
SshAgentPublicKeyIterator
public SshAgentPublicKeyIterator(ClientSession session, SshAgent agent) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public KeyAgentIdentity next()
-
-