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
- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description UserAuthPublicKeyIterator(ClientSession session, SignatureFactoriesManager signatureFactories)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
closeAgent()
boolean
hasNext()
protected Iterable<KeyAgentIdentity>
initializeAgentIdentities(ClientSession session)
protected Iterable<KeyPairIdentity>
initializeSessionIdentities(ClientSession session, SignatureFactoriesManager signatureFactories)
boolean
isOpen()
PublicKeyIdentity
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 java.util.Iterator
forEachRemaining
-
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
-
-
-
Constructor Detail
-
UserAuthPublicKeyIterator
public UserAuthPublicKeyIterator(ClientSession session, SignatureFactoriesManager signatureFactories) throws Exception
- Throws:
Exception
-
-
Method Detail
-
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:
hasNext
in interfaceIterator<PublicKeyIdentity>
-
next
public PublicKeyIdentity next()
- Specified by:
next
in interfaceIterator<PublicKeyIdentity>
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
closeAgent
protected void closeAgent() throws IOException
- Throws:
IOException
-
-