Top Description Fields Constructors Methods
org.apache.sshd.common.keyprovider

public Class MultiKeyIdentityProvider

extends Object
implements KeyIdentityProvider
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.keyprovider.KeyIdentityProvider
Imports
java.security.KeyPair, java.util.Collections, .Iterator, org.apache.sshd.common.session.SessionContext

Aggregates several KeyIdentityProvider-s into a single logical one that (lazily) exposes the keys from each aggregated provider
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
protected final Iterable<? extends KeyIdentityProvider>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Iterable<? extends KeyIdentityProvider>
public Iterable<KeyPair>
loadKeys(SessionContext
The SessionContext for invoking this load command - may be null if not invoked within a session context (e.g., offline tool or session unknown).
session
)

Implements org.apache.sshd.common.keyprovider.KeyIdentityProvider.loadKeys.

Load available keys.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

providersback to summary
protected final Iterable<? extends KeyIdentityProvider> providers

Constructor Detail

MultiKeyIdentityProviderback to summary
public MultiKeyIdentityProvider(Iterable<? extends KeyIdentityProvider> providers)

Method Detail

getProvidersback to summary
public Iterable<? extends KeyIdentityProvider> getProviders()
loadKeysback to summary
public Iterable<KeyPair> loadKeys(SessionContext session)

Implements org.apache.sshd.common.keyprovider.KeyIdentityProvider.loadKeys.

Doc from org.apache.sshd.common.keyprovider.KeyIdentityProvider.loadKeys.

Load available keys.

Parameters
session:SessionContext

The SessionContext for invoking this load command - may be null if not invoked within a session context (e.g., offline tool or session unknown).

Returns:Iterable<KeyPair>

an Iterable instance of available keys - ignored if null

Annotations
@Override