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 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 Modifier and Type Field Description private java.util.Vector
cache
private IdentityRepository
ir
private boolean
keep_in_cache
-
Fields inherited from interface com.jcraft.jsch.IdentityRepository
NOTRUNNING, RUNNING, UNAVAILABLE
-
-
Constructor Summary
Constructors Constructor Description Wrapper(IdentityRepository ir)
Wrapper(IdentityRepository ir, boolean keep_in_cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(byte[] identity)
(package private) void
add(Identity identity)
(package private) void
check()
java.util.Vector
getIdentities()
java.lang.String
getName()
int
getStatus()
boolean
remove(byte[] blob)
void
removeAll()
-
-
-
Field Detail
-
ir
private IdentityRepository ir
-
cache
private java.util.Vector cache
-
keep_in_cache
private boolean keep_in_cache
-
-
Constructor Detail
-
Wrapper
Wrapper(IdentityRepository ir)
-
Wrapper
Wrapper(IdentityRepository ir, boolean keep_in_cache)
-
-
Method Detail
-
getName
public java.lang.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 java.util.Vector getIdentities()
- Specified by:
getIdentities
in interfaceIdentityRepository
-
add
void add(Identity identity)
-
check
void check()
-
-