Package | Description |
---|---|
com.sshtools.publickey |
This package contains utility classes for loading/storing public/private keys
and is based on the SSHTools key format architecture.
|
com.sshtools.ssh |
This package contains a set of general interface contracts for SSH communication.
|
com.sshtools.ssh.components |
This package contains an abstract cryptographic provider for the SSH protocol.
|
com.sshtools.ssh.components.jce |
This package contains a set of algoritm implementations that enable the Maverick API
to use a Java Cryptography Extension provider.
|
com.sshtools.ssh2 |
This package contains an SSH2 implementation of the
com.sshtools.ssh interfaces.
|
Modifier and Type | Method and Description |
---|---|
static SshPublicKey |
SshPublicKeyFileFactory.decodeSSH2PublicKey(byte[] encoded)
Decode an SSH2 encoded public key as specified in the SSH2 transport
protocol.
|
static SshPublicKey |
SshPublicKeyFileFactory.decodeSSH2PublicKey(String algorithm,
byte[] encoded) |
SshPublicKey[] |
PublicKeySubsystem.list()
List all of the users acceptable keys.
|
SshPublicKey |
SshPublicKeyFile.toPublicKey()
Convert the key file into a usable SshPublicKey.
|
SshPublicKey |
SECSHPublicKeyFile.toPublicKey() |
SshPublicKey |
OpenSSHPublicKeyFile.toPublicKey() |
Modifier and Type | Method and Description |
---|---|
Hashtable<String,Hashtable<String,SshPublicKey>> |
AbstractKnownHostsKeyVerification.allowedHosts()
Returns a Map of the allowed hosts.
|
Modifier and Type | Method and Description |
---|---|
void |
PublicKeySubsystem.add(SshPublicKey key,
String comment)
Add a public key to the users list of acceptable keys.
|
void |
AbstractKnownHostsKeyVerification.allowHost(String host,
SshPublicKey pk,
boolean always)
Allows a host key, optionally recording the key to the known_hosts file.
|
void |
PublicKeySubsystem.associateCommand(SshPublicKey key,
String command)
Associate a command with an accepted public key.
|
static SshPublicKeyFile |
SshPublicKeyFileFactory.create(SshPublicKey key,
String comment,
int format)
Create a file representation from an existing public key.
|
static void |
SshPublicKeyFileFactory.createFile(SshPublicKey key,
String comment,
int format,
File toFile)
Take a SshPublicKey and write it to a
file
|
void |
ConsoleKnownHostsKeyVerification.onHostKeyMismatch(String host,
SshPublicKey pk,
SshPublicKey actual)
Prompts the user through the console to verify the host key.
|
abstract void |
AbstractKnownHostsKeyVerification.onHostKeyMismatch(String host,
SshPublicKey allowedHostKey,
SshPublicKey actualHostKey)
Called by the
verifyHost method when the host key supplied
by the host does not match the current key recording in the known hosts
file. |
void |
ConsoleKnownHostsKeyVerification.onUnknownHost(String host,
SshPublicKey pk)
Prompts the user through the console to verify the host key.
|
abstract void |
AbstractKnownHostsKeyVerification.onUnknownHost(String host,
SshPublicKey key)
Called by the
verifyHost method when the host key supplied
is not recorded in the known_hosts file. |
void |
PublicKeySubsystem.remove(SshPublicKey key)
Remove a public key from the users list of acceptable keys.
|
boolean |
AbstractKnownHostsKeyVerification.verifyHost(String host,
SshPublicKey pk)
Verifies a host key against the list of known_hosts.
|
Modifier and Type | Method and Description |
---|---|
SshPublicKey |
PublicKeyAuthentication.getPublicKey()
Get the public key for this authentication.
|
Modifier and Type | Method and Description |
---|---|
void |
PublicKeyAuthentication.setPublicKey(SshPublicKey publickey)
Set the public key for this authentication.
|
boolean |
HostKeyVerification.verifyHost(String host,
SshPublicKey pk)
Verify that the public key is acceptable for the host.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SshDsaPublicKey
This interface should be implemented by all DSA public key implementations.
|
interface |
SshRsaPublicKey
This interface should be implemented by all RSA public key implementations.
|
Modifier and Type | Method and Description |
---|---|
SshPublicKey |
SshKeyPair.getPublicKey()
Get the public key.
|
Modifier and Type | Method and Description |
---|---|
static SshKeyPair |
SshKeyPair.getKeyPair(SshPrivateKey prv,
SshPublicKey pub)
Wraps a public/private key pair into an SshKeyPair instance.
|
void |
SshKeyPair.setPublicKey(SshPublicKey publickey)
Set the public key
|
Modifier and Type | Class and Description |
---|---|
class |
Ssh2DsaPublicKey
A DSA public key implementation which uses a JCE provider.
|
class |
Ssh2RsaPublicKey
A RSA public key implementation which uses a JCE provider.
|
class |
SshX509DsaPublicKey
Basic implementation of X509 certificate support.
|
class |
SshX509RsaPublicKey
Basic implementation of X509 certificate support.
|
class |
SshX509RsaSha1PublicKey
Basic implementation of X509 certificate support.
|
Modifier and Type | Method and Description |
---|---|
SshPublicKey |
Ssh2HostbasedAuthentication.getPublicKey()
Set the public key used for this authentication
|
Modifier and Type | Method and Description |
---|---|
void |
Ssh2HostbasedAuthentication.setPublicKey(SshPublicKey pub)
Set the public key for the authentication attempt
|
byte[] |
SignatureGenerator.sign(SshPublicKey key,
byte[] data)
Sign the data using the private key of the public key provided.
|
Copyright © 2014. All rights reserved.