| Package | Description |
|---|---|
| com.sshtools.common.auth | |
| com.sshtools.common.knownhosts | |
| com.sshtools.common.publickey | |
| com.sshtools.common.publickey.authorized | |
| com.sshtools.common.ssh | |
| 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 algoritm implementations that enable the Maverick API
to use a Java Cryptography Extension provider.
|
| Modifier and Type | Method and Description |
|---|---|
SshPublicKey |
MutualKeyAuthenticatonStore.getPublicKey(SshConnection con) |
SshPublicKey |
InMemoryMutualKeyAuthenticationStore.getPublicKey(SshConnection con) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractPublicKeyAuthenticationProvider.add(SshPublicKey key,
java.lang.String comment,
SshConnection con) |
void |
AuthorizedKeysPublicKeyAuthenticationProvider.add(SshPublicKey key,
java.lang.String comment,
SshConnection con) |
void |
PublicKeyAuthenticationProvider.add(SshPublicKey key,
java.lang.String comment,
SshConnection con) |
void |
UniversalAuthenticationProvider.add(SshPublicKey key,
java.lang.String comment,
SshConnection con) |
void |
OpenSshCertificateAuthenticationProvider.add(SshPublicKey key,
java.lang.String comment,
SshConnection con) |
void |
PublicKeyAuthenticationAdapter.add(SshPublicKey key,
java.lang.String comment,
SshConnection con) |
void |
OpenSshCertificateAuthenticationProvider.addCAKey(SshPublicKey caKey) |
InMemoryMutualKeyAuthenticationStore |
InMemoryMutualKeyAuthenticationStore.addKey(java.lang.String username,
SshKeyPair privateKey,
SshPublicKey publicKey) |
boolean |
AbstractPublicKeyAuthenticationProvider.checkKey(SshPublicKey key,
SshConnection con) |
boolean |
AuthorizedKeysPublicKeyAuthenticationProvider.checkKey(SshPublicKey key,
SshConnection con) |
boolean |
PublicKeyAuthenticationProvider.checkKey(SshPublicKey key,
SshConnection con) |
boolean |
UniversalAuthenticationProvider.checkKey(SshPublicKey key,
SshConnection con) |
boolean |
OpenSshCertificateAuthenticationProvider.checkKey(SshPublicKey key,
SshConnection con) |
boolean |
AuthorizedKeysPublicKeyAuthenticationProvider.isAuthorizedKey(SshPublicKey key,
SshConnection con)
Checks the given public key by comparing it against the public keys
stored in the users authorized_keys file.
|
boolean |
PublicKeyAuthenticationProvider.isAuthorizedKey(SshPublicKey key,
SshConnection con)
Check the supplied public key against the users authorized keys.
|
boolean |
UniversalAuthenticationProvider.isAuthorizedKey(SshPublicKey key,
SshConnection con) |
boolean |
OpenSshCertificateAuthenticationProvider.isAuthorizedKey(SshPublicKey key,
SshConnection con) |
void |
AbstractPublicKeyAuthenticationProvider.remove(SshPublicKey key,
SshConnection con) |
void |
AuthorizedKeysPublicKeyAuthenticationProvider.remove(SshPublicKey key,
SshConnection con) |
void |
PublicKeyAuthenticationProvider.remove(SshPublicKey key,
SshConnection con) |
void |
UniversalAuthenticationProvider.remove(SshPublicKey key,
SshConnection con) |
void |
OpenSshCertificateAuthenticationProvider.remove(SshPublicKey key,
SshConnection con) |
void |
PublicKeyAuthenticationAdapter.remove(SshPublicKey key,
SshConnection con) |
void |
OpenSshCertificateAuthenticationProvider.removeKey(SshPublicKey caKey) |
| Constructor and Description |
|---|
OpenSshCertificateAuthenticationProvider(SshPublicKey... caPublicKey) |
| Constructor and Description |
|---|
OpenSshCertificateAuthenticationProvider(java.util.Collection<SshPublicKey> caPublicKeys) |
| Modifier and Type | Method and Description |
|---|---|
SshPublicKey |
KnownHostsKeyVerification.KeyEntry.getKey() |
| Modifier and Type | Method and Description |
|---|---|
void |
KnownHostsKeyVerification.addEntry(SshPublicKey key,
java.lang.String comment,
java.lang.String... names) |
void |
KnownHostsKeyVerification.allowHost(java.lang.String host,
SshPublicKey key,
boolean always) |
boolean |
KnownHostsKeyVerification.isKnownHost(java.lang.String host,
SshPublicKey key) |
boolean |
HostKeyUpdater.isKnownHost(java.lang.String host,
SshPublicKey key) |
protected void |
KnownHostsKeyVerification.onHostKeyAdded(java.util.Set<java.lang.String> names,
SshPublicKey key) |
protected void |
KnownHostsFile.onHostKeyAdded(java.util.Set<java.lang.String> names,
SshPublicKey key) |
protected void |
KnownHostsKeyVerification.onHostKeyMismatch(java.lang.String host,
java.util.List<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. |
protected void |
ConsoleKnownHostsFile.onHostKeyMismatch(java.lang.String host,
java.util.List<SshPublicKey> allowedHostKey,
SshPublicKey actual) |
protected void |
KnownHostsFile.onHostKeyMismatch(java.lang.String host,
java.util.List<SshPublicKey> allowedHostKey,
SshPublicKey actualHostKey) |
protected void |
KnownHostsKeyVerification.onHostKeyRemoved(java.util.Set<java.lang.String> names,
SshPublicKey key) |
protected void |
KnownHostsFile.onHostKeyRemoved(java.util.Set<java.lang.String> names,
SshPublicKey key) |
protected void |
KnownHostsKeyVerification.onHostKeyUpdated(java.util.Set<java.lang.String> names,
SshPublicKey key) |
protected void |
KnownHostsFile.onHostKeyUpdated(java.util.Set<java.lang.String> names,
SshPublicKey key) |
protected void |
KnownHostsKeyVerification.onRevokedKey(java.lang.String host,
SshPublicKey key)
Called by the
verifyHost method when the host key supplied is
listed as a revoked key. |
protected void |
ConsoleKnownHostsFile.onRevokedKey(java.lang.String host,
SshPublicKey key) |
protected void |
KnownHostsFile.onRevokedKey(java.lang.String host,
SshPublicKey key) |
protected void |
KnownHostsKeyVerification.onUnknownHost(java.lang.String host,
SshPublicKey key)
Called by the
verifyHost method when the host key supplied is
not recorded in the known_hosts file. |
void |
ConsoleKnownHostsFile.onUnknownHost(java.lang.String host,
SshPublicKey pk)
Prompts the user through the console to verify the host key.
|
protected void |
KnownHostsFile.onUnknownHost(java.lang.String host,
SshPublicKey key) |
void |
KnownHostsKeyVerification.removeEntries(SshPublicKey key) |
void |
KnownHostsKeyVerification.updateHostKey(java.lang.String host,
SshPublicKey key) |
void |
HostKeyUpdater.updateHostKey(java.lang.String host,
SshPublicKey key) |
boolean |
KnownHostsKeyVerification.verifyHost(java.lang.String host,
SshPublicKey pk)
Verifies a host key against the list of known_hosts.
|
boolean |
X509HostKeyVerification.verifyHost(java.lang.String host,
SshPublicKey pk) |
boolean |
HostKeyVerificationManager.verifyHost(java.lang.String host,
SshPublicKey pk) |
boolean |
HostKeyVerification.verifyHost(java.lang.String host,
SshPublicKey pk)
Verify that the public key is acceptable for the host.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
KnownHostsKeyVerification.onHostKeyMismatch(java.lang.String host,
java.util.List<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. |
protected void |
ConsoleKnownHostsFile.onHostKeyMismatch(java.lang.String host,
java.util.List<SshPublicKey> allowedHostKey,
SshPublicKey actual) |
protected void |
KnownHostsFile.onHostKeyMismatch(java.lang.String host,
java.util.List<SshPublicKey> allowedHostKey,
SshPublicKey actualHostKey) |
| Modifier and Type | Class and Description |
|---|---|
class |
OpenSshCertificate
To generate a key that supports this use
ssh-keygen -s ca_key -I 2 -n lee,kelly -z 12345 -O force-command=ls -O
source-address=192.168.82.0/24 -O no-port-forwarding user_key.pub
|
| Modifier and Type | Field and Description |
|---|---|
protected SshPublicKey |
OpenSshCertificate.publicKey |
| 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(java.lang.String algorithm,
byte[] encoded) |
static SshPublicKey |
SshKeyUtils.getPublicKey(java.io.File key) |
static SshPublicKey |
SshKeyUtils.getPublicKey(java.io.InputStream key) |
static SshPublicKey |
SshKeyUtils.getPublicKey(java.lang.String formattedKey) |
SshPublicKey |
OpenSshCertificate.getSignedBy() |
SshPublicKey |
OpenSshCertificate.getSignedKey() |
SshPublicKey |
SECSHPublicKeyFile.toPublicKey() |
SshPublicKey |
SshPublicKeyFile.toPublicKey()
Convert the key file into a usable SshPublicKey.
|
SshPublicKey |
OpenSSHPublicKeyFile.toPublicKey() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<SshPublicKey> |
SignatureGenerator.getPublicKeys()
List the public keys supported by this signature generator.
|
| Modifier and Type | Method and Description |
|---|---|
static SshPublicKeyFile |
SshPublicKeyFileFactory.create(SshPublicKey key,
java.lang.String comment,
int format)
Create a file representation from an existing public key.
|
static SshPublicKeyFile |
SshPublicKeyFileFactory.create(SshPublicKey key,
java.lang.String options,
java.lang.String comment,
int format)
Create a file representation from an existing public key.
|
static void |
SshPublicKeyFileFactory.createFile(SshPublicKey key,
java.lang.String comment,
int format,
java.io.File toFile)
Take a SshPublicKey and write it to a
file
|
static void |
SshKeyUtils.createPublicKeyFile(SshPublicKey publicKey,
java.lang.String comment,
java.io.File file) |
static void |
SshKeyUtils.createPublicKeyFile(SshPublicKey publicKey,
java.lang.String comment,
java.io.File file,
int format) |
static java.lang.String |
SshKeyUtils.getBubbleBabble(SshPublicKey pub) |
static java.lang.String |
SshKeyUtils.getFingerprint(SshPublicKey key) |
static java.lang.String |
SshKeyUtils.getFormattedKey(SshPublicKey key,
java.lang.String comment) |
static java.lang.String |
SshKeyUtils.getFormattedKey(SshPublicKey key,
java.lang.String comment,
int format) |
static java.lang.String |
SshKeyUtils.getOpenSSHFormattedKey(SshPublicKey key) |
static java.lang.String |
SshKeyUtils.getOpenSSHFormattedKey(SshPublicKey key,
java.lang.String comment) |
byte[] |
SignatureGenerator.sign(SshPublicKey key,
java.lang.String signingAlgorithm,
byte[] data)
Sign the data using the private key of the public key provided.
|
void |
OpenSshCertificate.sign(SshPublicKey publicKey,
com.sshtools.common.util.UnsignedInteger64 serial,
int type,
java.lang.String keyId,
java.util.List<java.lang.String> validPrincipals,
com.sshtools.common.util.UnsignedInteger64 validAfter,
com.sshtools.common.util.UnsignedInteger64 validBefore,
java.util.List<CriticalOption> criticalOptions,
java.util.List<CertificateExtension> extensions,
SshKeyPair signingKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
AuthorizedKeyFile.addKey(SshPublicKey key,
java.lang.String comment) |
void |
AuthorizedKeyFile.addKey(SshPublicKey key,
java.lang.String comment,
Option<?>... options) |
PublicKeyEntry |
AuthorizedKeyFile.getKeyEntry(SshPublicKey key) |
boolean |
AuthorizedKeyFile.isAuthorizedKey(SshPublicKey key) |
void |
AuthorizedKeyFile.removeKeys(SshPublicKey... keys) |
void |
AuthorizedKeyFile.setOption(SshPublicKey key,
Option<?> option) |
| Modifier and Type | Method and Description |
|---|---|
SshPublicKey |
SshConnection.getHostKey() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
SshKeyFingerprint.getBubbleBabble(SshPublicKey key) |
static java.lang.String |
SshKeyFingerprint.getFingerprint(SshPublicKey key) |
| 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 |
|---|---|
ComponentFactory<SshPublicKey> |
ComponentManager.supportedPublicKeys()
The supported public keys
|
| 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 | Method and Description |
|---|---|
protected abstract void |
ComponentManager.initializePublicKeyFactory(ComponentFactory<SshPublicKey> publickeys)
Initialize the public key factory.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SshEd25519PublicKey |
| Modifier and Type | Class and Description |
|---|---|
class |
OpenSshEcdsaCertificate |
class |
OpenSshEcdsaSha2Nist256Certificate |
class |
OpenSshEcdsaSha2Nist384Certificate |
class |
OpenSshEcdsaSha2Nist521Certificate |
class |
OpenSshEd25519Certificate |
class |
OpenSshRsaCertificate
A RSA public key implementation which uses a JCE provider.
|
class |
Ssh2DsaPublicKey
A DSA public key implementation which uses a JCE provider.
|
class |
Ssh2EcdsaSha2Nist256PublicKey |
class |
Ssh2EcdsaSha2Nist384PublicKey |
class |
Ssh2EcdsaSha2Nist521PublicKey |
class |
Ssh2EcdsaSha2NistPublicKey |
class |
Ssh2RsaPublicKey
A RSA public key implementation which uses a JCE provider.
|
class |
Ssh2RsaPublicKeySHA256 |
class |
Ssh2RsaPublicKeySHA512 |
class |
SshEd25519PublicKeyJCE |
| Modifier and Type | Method and Description |
|---|---|
protected void |
JCEComponentManager.initializePublicKeyFactory(ComponentFactory<SshPublicKey> publickeys) |
Copyright © 2022. All rights reserved.