maspack.fileutil.jsch
Class SimpleIdentityRepository

java.lang.Object
  extended by maspack.fileutil.jsch.SimpleIdentityRepository
All Implemented Interfaces:
com.jcraft.jsch.IdentityRepository

public class SimpleIdentityRepository
extends java.lang.Object
implements com.jcraft.jsch.IdentityRepository

Implements a basic IdentityRepository that only allows explicit adding/removing of Identity objects

Author:
"Antonio Sanchez" Creation date: 24 Oct 2012

Field Summary
 
Fields inherited from interface com.jcraft.jsch.IdentityRepository
NOTRUNNING, RUNNING, UNAVAILABLE
 
Constructor Summary
SimpleIdentityRepository()
           
 
Method Summary
 boolean add(byte[] blob)
           
 void add(com.jcraft.jsch.Identity identity)
           
 java.util.Vector<com.jcraft.jsch.Identity> getIdentities()
           
 com.jcraft.jsch.Identity getIdentity(int idx)
           
 com.jcraft.jsch.Identity getIdentity(java.lang.String name)
           
 java.lang.String getName()
           
 int getStatus()
           
 boolean remove(byte[] blob)
           
 boolean remove(com.jcraft.jsch.Identity id)
           
 void removeAll()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleIdentityRepository

public SimpleIdentityRepository()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface com.jcraft.jsch.IdentityRepository

getStatus

public int getStatus()
Specified by:
getStatus in interface com.jcraft.jsch.IdentityRepository

getIdentity

public com.jcraft.jsch.Identity getIdentity(java.lang.String name)

getIdentity

public com.jcraft.jsch.Identity getIdentity(int idx)

getIdentities

public java.util.Vector<com.jcraft.jsch.Identity> getIdentities()
Specified by:
getIdentities in interface com.jcraft.jsch.IdentityRepository

add

public void add(com.jcraft.jsch.Identity identity)

remove

public boolean remove(com.jcraft.jsch.Identity id)

removeAll

public void removeAll()
Specified by:
removeAll in interface com.jcraft.jsch.IdentityRepository

add

public boolean add(byte[] blob)
Specified by:
add in interface com.jcraft.jsch.IdentityRepository

remove

public boolean remove(byte[] blob)
Specified by:
remove in interface com.jcraft.jsch.IdentityRepository