Package com.jcraft.jsch
Class IdentityRepository.Wrapper
- java.lang.Object
-
- com.jcraft.jsch.IdentityRepository.Wrapper
-
- All Implemented Interfaces:
IdentityRepository
- Enclosing interface:
- IdentityRepository
public static class IdentityRepository.Wrapper extends 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(byte[] identity)
Vector
getIdentities()
String
getName()
int
getStatus()
boolean
remove(byte[] blob)
void
removeAll()
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceIdentityRepository
-
getStatus
public int getStatus()
- Specified by:
getStatus
in interfaceIdentityRepository
-
add
public boolean add(byte[] identity)
- Specified by:
add
in interfaceIdentityRepository
-
remove
public boolean remove(byte[] blob)
- Specified by:
remove
in interfaceIdentityRepository
-
removeAll
public void removeAll()
- Specified by:
removeAll
in interfaceIdentityRepository
-
getIdentities
public Vector getIdentities()
- Specified by:
getIdentities
in interfaceIdentityRepository
-
-