Class UserAuthPublicKeyIterator
java.lang.Object
org.apache.sshd.client.auth.pubkey.AbstractKeyPairIterator<PublicKeyIdentity>
org.apache.sshd.client.auth.pubkey.UserAuthPublicKeyIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,Iterator<PublicKeyIdentity>,ClientSessionHolder,SessionContextHolder,SessionHolder<ClientSession>
public class UserAuthPublicKeyIterator
extends AbstractKeyPairIterator<PublicKeyIdentity>
implements Channel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SshAgentprivate Iterator<? extends PublicKeyIdentity> private final AtomicBoolean -
Constructor Summary
ConstructorsConstructorDescriptionUserAuthPublicKeyIterator(ClientSession session, SignatureFactoriesManager signatureFactories) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidbooleanhasNext()protected Iterable<KeyAgentIdentity> initializeAgentIdentities(ClientSession session) protected Iterable<KeyPairIdentity> initializeSessionIdentities(ClientSession session, SignatureFactoriesManager signatureFactories) booleanisOpen()next()Methods inherited from class org.apache.sshd.client.auth.pubkey.AbstractKeyPairIterator
getClientSession, getSession, remove, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
Field Details
-
open
-
current
-
agent
-
-
Constructor Details
-
UserAuthPublicKeyIterator
public UserAuthPublicKeyIterator(ClientSession session, SignatureFactoriesManager signatureFactories) throws Exception - Throws:
Exception
-
-
Method Details
-
initializeSessionIdentities
protected Iterable<KeyPairIdentity> initializeSessionIdentities(ClientSession session, SignatureFactoriesManager signatureFactories) -
initializeAgentIdentities
protected Iterable<KeyAgentIdentity> initializeAgentIdentities(ClientSession session) throws IOException - Throws:
IOException
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<PublicKeyIdentity>
-
next
- Specified by:
nextin interfaceIterator<PublicKeyIdentity>
-
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
closeAgent
- Throws:
IOException
-