maspack.fileutil.jsch
Class SimpleIdentityRepository
java.lang.Object
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
Fields inherited from interface com.jcraft.jsch.IdentityRepository |
NOTRUNNING, RUNNING, UNAVAILABLE |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleIdentityRepository
public SimpleIdentityRepository()
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