Package com.jcraft.jsch
Class IdentityRepository.Wrapper
java.lang.Object
com.jcraft.jsch.IdentityRepository.Wrapper
- All Implemented Interfaces:
IdentityRepository
- Enclosing interface:
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
FieldsFields inherited from interface com.jcraft.jsch.IdentityRepository
NOTRUNNING, RUNNING, UNAVAILABLE
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ir
-
cache
-
keep_in_cache
private boolean keep_in_cache
-
-
Constructor Details
-
Wrapper
Wrapper(IdentityRepository ir) -
Wrapper
Wrapper(IdentityRepository ir, boolean keep_in_cache)
-
-
Method Details
-
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
- Specified by:
getIdentities
in interfaceIdentityRepository
-
add
-
check
void check()
-