com.jcraft.jsch
Class IdentityRepository.Wrapper

java.lang.Object
  extended by com.jcraft.jsch.IdentityRepository.Wrapper
All Implemented Interfaces:
IdentityRepository
Enclosing interface:
IdentityRepository

public static class IdentityRepository.Wrapper
extends java.lang.Object
implements IdentityRepository

JSch will accept ciphered keys, but some implementations of IdentityRepository can not. For example, IdentityRepository for ssh-agent and pageant only accept plain keys. The following class has been introduced to cache ciphered keys for them, and pass them whenever they are de-ciphered.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jcraft.jsch.IdentityRepository
IdentityRepository.Wrapper
 
Field Summary
 
Fields inherited from interface com.jcraft.jsch.IdentityRepository
NOTRUNNING, RUNNING, UNAVAILABLE
 
Method Summary
 boolean add(byte[] identity)
           
 java.util.Vector getIdentities()
           
 java.lang.String getName()
           
 int getStatus()
           
 boolean remove(byte[] blob)
           
 void removeAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

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

getStatus

public int getStatus()
Specified by:
getStatus in interface IdentityRepository

add

public boolean add(byte[] identity)
Specified by:
add in interface IdentityRepository

remove

public boolean remove(byte[] blob)
Specified by:
remove in interface IdentityRepository

removeAll

public void removeAll()
Specified by:
removeAll in interface IdentityRepository

getIdentities

public java.util.Vector getIdentities()
Specified by:
getIdentities in interface IdentityRepository