Package | Description |
---|---|
com.sshtools.client | |
com.sshtools.common.publickey | |
com.sshtools.common.ssh.components |
This package contains an abstract cryptographic provider for the SSH protocol.
|
com.sshtools.common.ssh.components.jce |
This package contains a set of algorithm implementations that enable the Maverick API
to use a Java Cryptography Extension provider.
|
com.sshtools.server |
Modifier and Type | Method and Description |
---|---|
void |
PublicKeyAuthenticator.setKeyPair(SshKeyPair... pair) |
Constructor and Description |
---|
PublicKeyAuthenticator(SshKeyPair... keys) |
Modifier and Type | Method and Description |
---|---|
static SshKeyPair |
SshKeyPairGenerator.generateKeyPair(String algorithm,
int bits)
Generates a new key pair.
|
SshKeyPair |
SshPrivateKeyFile.toKeyPair(String passphrase)
Decode the private key using the users passphrase.
|
Modifier and Type | Method and Description |
---|---|
static SshPrivateKeyFile |
SshPrivateKeyFileFactory.create(SshKeyPair pair,
String passphrase,
String comment) |
static void |
SshPrivateKeyFileFactory.createFile(SshKeyPair key,
String passphrase,
String comment,
File toFile)
Take a SshPrivateKey and write it to a
file.
|
Modifier and Type | Method and Description |
---|---|
abstract SshKeyPair |
ComponentManager.generateDsaKeyPair(int bits)
Generate a new DSA public/private key pair.
|
abstract SshKeyPair |
ComponentManager.generateEcdsaKeyPair(int bits)
Generate a new ECDSA key pair.
|
abstract SshKeyPair |
ComponentManager.generateRsaKeyPair(int bits)
Generate an RSA public/private pair.
|
static SshKeyPair |
SshKeyPair.getKeyPair(SshPrivateKey prv,
SshPublicKey pub)
Wraps a public/private key pair into an SshKeyPair instance.
|
abstract SshKeyPair[] |
ComponentManager.loadKeystore(File keystoreFile,
String alias,
String storePassphrase,
String keyPassphrase)
Load a host key from a keystore file.
|
abstract SshKeyPair[] |
ComponentManager.loadKeystore(File keystoreFile,
String alias,
String storePassphrase,
String keyPassphrase,
String storeType) |
abstract SshKeyPair[] |
ComponentManager.loadKeystore(InputStream in,
String alias,
String storePassphrase,
String keyPassphrase)
Load a host key from a keystore InputStream.
|
abstract SshKeyPair[] |
ComponentManager.loadKeystore(InputStream in,
String alias,
String storePassphrase,
String keyPassphrase,
String storeType) |
Modifier and Type | Method and Description |
---|---|
SshKeyPair |
JCEComponentManager.generateDsaKeyPair(int bits) |
SshKeyPair |
JCEComponentManager.generateEcdsaKeyPair(int bits) |
SshKeyPair |
JCEComponentManager.generateRsaKeyPair(int bits) |
SshKeyPair[] |
JCEComponentManager.loadKeystore(File keystoreFile,
String alias,
String storePassphrase,
String keyPassphrase) |
SshKeyPair[] |
JCEComponentManager.loadKeystore(File keystoreFile,
String alias,
String storePassphrase,
String keyPassphrase,
String storeType) |
SshKeyPair[] |
JCEComponentManager.loadKeystore(InputStream in,
String alias,
String storePassphrase,
String keyPassphrase)
Load a keystore for use as an SSH host key.
|
SshKeyPair[] |
JCEComponentManager.loadKeystore(InputStream in,
String alias,
String storePassphrase,
String keyPassphrase,
String storeType)
Load a keystore for use as an SSH host key.
|
Modifier and Type | Method and Description |
---|---|
static SshKeyPair |
SshServerContext.generateKeyFiles(File keyFilename,
String type,
int bitlength,
int publicKeyFormat)
Generate a public and private key pair, save them to keyFilename and
keyFilename.pub, return the key pair
|
SshKeyPair |
SshServerContext.getHostKey(String algorithm)
Get the host key for a given algorithm.
|
SshKeyPair[] |
SshServerContext.getHostKeys()
Get all the hosts keys.
|
SshKeyPair |
SshServerContext.loadKey(File key,
String passphrase) |
SshKeyPair |
SshServerContext.loadKey(InputStream in,
String passphrase) |
Modifier and Type | Method and Description |
---|---|
void |
SshServerContext.addHostKey(SshKeyPair keyPair)
Add a host key to the configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
SshServerContext.addHostKeys(Collection<SshKeyPair> keys)
Add a collection of host keys.
|
Copyright © 2016. All rights reserved.