edu.utk.cs.icl.rest.comm
Interface ReSTAgent

All Superinterfaces:
com.jcraft.jsch.Identity, Remote, Serializable

public interface ReSTAgent
extends Remote, com.jcraft.jsch.Identity

An interface for any class that will be used as a ReSTAgent to serve JSch Identities.

Version:
$Revision: 1.5 $
Author:
Jeff Larkin

Method Summary
 boolean addIdentity(Object id)
          Adds an Identity to the agent
 Vector getIdentities()
          Returns a vector of all known Identities.
 int nextIdentity(int i)
          Switch to an Identity from the agent.
 boolean removeIdentity(Object id)
          Removes an Identity from the agent.
 
Methods inherited from interface com.jcraft.jsch.Identity
decrypt, getAlgName, getName, getPublicKeyBlob, getSignature, isEncrypted, setPassphrase, setPassphrase, setPassphrase
 

Method Detail

getIdentities

public Vector getIdentities()
                     throws RemoteException
Returns a vector of all known Identities.

Returns:
A vector containing all known Identites.
Throws:
RemoteException - Thrown when an RMI error occurs.

addIdentity

public boolean addIdentity(Object id)
                    throws RemoteException
Adds an Identity to the agent

Parameters:
id - The Identity to add
Returns:
True if the Identity is added. False if it is not.
Throws:
RemoteException - Thrown when an RMI error occurs.

removeIdentity

public boolean removeIdentity(Object id)
                       throws RemoteException
Removes an Identity from the agent.

Parameters:
id - The Identity to remove.
Returns:
True if the Identity is removed. False if it is not.
Throws:
RemoteException - Thrown when an RMI error occurs.

nextIdentity

public int nextIdentity(int i)
                 throws RemoteException
Switch to an Identity from the agent.

Parameters:
i - The Identity to goto next.
Returns:
True if the Identity is removed. False if it is not.
Throws:
RemoteException - Thrown when an RMI error occurs.