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 voidclose()protected voidcloseAgent()booleanhasNext()protected Iterable<KeyAgentIdentity>initializeAgentIdentities(ClientSession session)protected Iterable<KeyPairIdentity>initializeSessionIdentities(ClientSession session, SignatureFactoriesManager signatureFactories)booleanisOpen()PublicKeyIdentitynext()-
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:
hasNextin interfaceIterator<PublicKeyIdentity>
-
next
public PublicKeyIdentity next()
- Specified by:
nextin interfaceIterator<PublicKeyIdentity>
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
closeAgent
protected void closeAgent() throws IOException- Throws:
IOException
-
-