Top Fields Constructors Methods
org.apache.sshd.client.auth.pubkey

public Class SshAgentPublicKeyIterator

extends AbstractKeyPairIterator<KeyAgentIdentity>
Class Inheritance
Imports
java.io.IOException, java.security.PublicKey, java.util.Iterator, .Map, .Objects, org.apache.sshd.agent.SshAgent, org.apache.sshd.client.session.ClientSession, org.apache.sshd.common.util.GenericUtils

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final SshAgent
private final Iterator<? extends Map.Entry<PublicKey, String>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.

public KeyAgentIdentity
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.

Inherited from org.apache.sshd.client.auth.pubkey.AbstractKeyPairIterator:
getClientSessiongetSessionremovetoString

Field Detail

agentback to summary
private final SshAgent agent
keysback to summary
private final Iterator<? extends Map.Entry<PublicKey, String>> keys

Constructor Detail

SshAgentPublicKeyIteratorback to summary
public SshAgentPublicKeyIterator(ClientSession session, SshAgent agent) throws IOException

Method Detail

hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:boolean

true if the iteration has more elements

Annotations
@Override
nextback to summary
public KeyAgentIdentity next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Returns:KeyAgentIdentity

the next element in the iteration

Annotations
@Override