public class MaverickSshProvider extends AbstractProvider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CFG_HTTP_PROXY_USER_AGENT
The User-Agent Maverick identifies itself as when using HTTP proxy
connection
|
static java.lang.String |
CFG_SFTP_MAX_VERSION
SFTP protocol maximum version (defaults to the highest supported by
Maverick)
|
static java.lang.String |
CFG_SFTP_MODE
SFTP mode, can be one of SFTP_ALL_MODES, SFTP_OVER_SCP or SFTP_SUBSYSTEM
|
static java.lang.String |
CFG_SOCKS5_PROXY_LOCAL_LOOKUP
Look up proxied hostnames locally
|
| Constructor and Description |
|---|
MaverickSshProvider()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
SshHostKeyManager |
createHostKeyManager(SshConfiguration configuration)
Create a
SshHostKeyManager that may be used to list, add and remove
valid host keys. |
SshIdentityManager |
createIdentityManager(SshConfiguration configuration)
Create an @
SshIdentityManager (if supported) |
SshClient |
doCreateClient(SshConfiguration configuration) |
void |
doSupportsConfiguration(SshConfiguration configuration) |
java.util.List |
getCapabilities()
Get a list of the capabilities of this implementation (
Capability
objects) |
java.util.List |
getSupportedCiphers(int protocolVersion)
Get a list of supported ciphers.
|
java.util.List |
getSupportedCompression()
Get a list of supported compression types.
|
java.util.List |
getSupportedKeyExchange()
Get a list of supported key exchange algorithms.
|
java.util.List |
getSupportedMAC()
Get a list of supported MAC types.
|
java.util.List |
getSupportedPublicKey()
Get a list of supported public key algorithms.
|
void |
seed(long seed)
Seed the random number generator.
|
connectToLocalAgent, connectToLocalAgent, connectToLocalAgent, createClient, getName, setSupportsDefaultConfiguration, supportsConfigurationpublic static final java.lang.String CFG_HTTP_PROXY_USER_AGENT
public static final java.lang.String CFG_SOCKS5_PROXY_LOCAL_LOOKUP
public static final java.lang.String CFG_SFTP_MODE
public static final java.lang.String CFG_SFTP_MAX_VERSION
public SshIdentityManager createIdentityManager(SshConfiguration configuration)
SshProviderSshIdentityManager (if supported)createIdentityManager in interface SshProvidercreateIdentityManager in class AbstractProviderconfiguration - configurationpublic SshHostKeyManager createHostKeyManager(SshConfiguration configuration) throws SshException
SshProviderSshHostKeyManager that may be used to list, add and remove
valid host keys. An implementation is not required to provide this
functionality, but vendors do, so this interface provides a common way to
access them.createHostKeyManager in interface SshProvidercreateHostKeyManager in class AbstractProviderconfiguration - configurationSshExceptionpublic SshClient doCreateClient(SshConfiguration configuration)
doCreateClient in class AbstractProviderpublic void doSupportsConfiguration(SshConfiguration configuration)
doSupportsConfiguration in class AbstractProviderpublic java.util.List getCapabilities()
SshProviderCapability
objects)Capabilitypublic java.util.List getSupportedCiphers(int protocolVersion)
SshProviderString of the
cipher name. If SshConfiguration.SSH1_OR_SSH2 is specified, the list
will contain cipher names for both version (in practice, SSH1 only supported
one cipher).
If the provider does not support SSH1, it should throw an
UnsupportedOperationException if SshConfiguration.SSH1_ONLY
is requested. The same applies for SSH2
protocolVersion - version of protocolpublic java.util.List getSupportedCompression()
SshProviderString of the compression type name.
NOTE: Only applicable to SSH2
public java.util.List getSupportedMAC()
SshProviderString of
the MAC type name.
NOTE: Only applicable to SSH2
public java.util.List getSupportedKeyExchange()
SshProviderString of the key exchange name.
NOTE: Only applicable to SSH2
public java.util.List getSupportedPublicKey()
SshProviderString of the public key name.
NOTE: Only applicable to SSH2
public void seed(long seed)
SshProviderseed - seedCopyright © 2018. All rights reserved.