Class ClientIdentitiesWatcher
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
org.apache.sshd.client.config.keys.ClientIdentitiesWatcher
- All Implemented Interfaces:
KeyIdentityProvider
,KeyPairProvider
- Direct Known Subclasses:
BuiltinClientIdentitiesWatcher
Watches over a group of files that contains client identities
-
Field Summary
FieldsFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
Fields inherited from interface org.apache.sshd.common.keyprovider.KeyIdentityProvider
EMPTY_KEYS_PROVIDER
Fields inherited from interface org.apache.sshd.common.keyprovider.KeyPairProvider
ECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_DSS_CERT, SSH_ECDSA_SHA2_NISTP256_CERT, SSH_ECDSA_SHA2_NISTP384_CERT, SSH_ECDSA_SHA2_NISTP521_CERT, SSH_ED25519, SSH_ED25519_CERT, SSH_RSA, SSH_RSA_CERT
-
Constructor Summary
ConstructorsConstructorDescriptionClientIdentitiesWatcher
(Collection<? extends Path> paths, ClientIdentityLoaderHolder loader, FilePasswordProviderHolder provider) ClientIdentitiesWatcher
(Collection<? extends Path> paths, ClientIdentityLoaderHolder loader, FilePasswordProviderHolder provider, boolean strict) ClientIdentitiesWatcher
(Collection<? extends Path> paths, ClientIdentityLoader loader, FilePasswordProvider provider) ClientIdentitiesWatcher
(Collection<? extends Path> paths, ClientIdentityLoader loader, FilePasswordProvider provider, boolean strict) ClientIdentitiesWatcher
(Collection<ClientIdentityProvider> providers) -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<ClientIdentityProvider> buildProviders
(Collection<? extends Path> paths, ClientIdentityLoaderHolder loader, FilePasswordProviderHolder provider, boolean strict) static List
<ClientIdentityProvider> buildProviders
(Collection<? extends Path> paths, ClientIdentityLoader loader, FilePasswordProvider provider, boolean strict) doGetKeyPairs
(SessionContext session, ClientIdentityProvider p) loadKeys
(SessionContext session) Load available keys.loadKeys
(SessionContext session, Predicate<KeyPair> filter) Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.sshd.common.keyprovider.KeyPairProvider
getKeyTypes, loadKey
-
Field Details
-
providers
-
-
Constructor Details
-
ClientIdentitiesWatcher
public ClientIdentitiesWatcher(Collection<? extends Path> paths, ClientIdentityLoader loader, FilePasswordProvider provider) -
ClientIdentitiesWatcher
public ClientIdentitiesWatcher(Collection<? extends Path> paths, ClientIdentityLoader loader, FilePasswordProvider provider, boolean strict) -
ClientIdentitiesWatcher
public ClientIdentitiesWatcher(Collection<? extends Path> paths, ClientIdentityLoaderHolder loader, FilePasswordProviderHolder provider) -
ClientIdentitiesWatcher
public ClientIdentitiesWatcher(Collection<? extends Path> paths, ClientIdentityLoaderHolder loader, FilePasswordProviderHolder provider, boolean strict) -
ClientIdentitiesWatcher
-
-
Method Details
-
loadKeys
Description copied from interface:KeyIdentityProvider
Load available keys.- Parameters:
session
- TheSessionContext
for invoking this load command - may benull
if not invoked within a session context (e.g., offline tool or session unknown).- Returns:
- an
Iterable
instance of available keys - ignored ifnull
-
loadKeys
-
doGetKeyPairs
-
buildProviders
public static List<ClientIdentityProvider> buildProviders(Collection<? extends Path> paths, ClientIdentityLoader loader, FilePasswordProvider provider, boolean strict) -
buildProviders
public static List<ClientIdentityProvider> buildProviders(Collection<? extends Path> paths, ClientIdentityLoaderHolder loader, FilePasswordProviderHolder provider, boolean strict)
-