| Package | Description |
|---|---|
| com.sshtools.common.auth | |
| com.sshtools.common.knownhosts | |
| com.sshtools.common.publickey | |
| com.sshtools.common.sftp.extensions | |
| 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.
|
| com.sshtools.common.sshd |
| 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) |
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) |
| 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) |
void |
KnownHostsKeyVerification.load(java.io.InputStream in) |
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.onInvalidHostEntry(java.lang.String entry) |
protected void |
ConsoleKnownHostsFile.onInvalidHostEntry(java.lang.String entry) |
protected void |
KnownHostsFile.onInvalidHostEntry(java.lang.String entry) |
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. |
protected void |
KnownHostsFile.onUnknownHost(java.lang.String host,
SshPublicKey key) |
void |
KnownHostsKeyVerification.removeEntries(java.lang.String... hosts) |
void |
KnownHostsKeyVerification.removeEntries(java.lang.String host)
Removes an allowed host.
|
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.
|
| Constructor and Description |
|---|
ConsoleKnownHostsFile() |
ConsoleKnownHostsFile(java.io.File file) |
KnownHostsFile() |
KnownHostsFile(java.io.File file) |
KnownHostsKeyVerification(java.io.InputStream in) |
KnownHostsKeyVerification(java.lang.String knownhosts) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
OpenSshCertificate.decodeCertificate(com.sshtools.common.util.ByteArrayReader reader) |
protected abstract void |
OpenSshCertificate.decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) |
protected void |
OpenSshCertificate.encodeCertificate(com.sshtools.common.util.ByteArrayWriter writer) |
static SshCertificate |
SshCertificateAuthority.generateCertificate(SshKeyPair key,
long serial,
int type,
java.lang.String keyId,
java.util.List<java.lang.String> validPrincipals,
int validityDays,
java.util.List<CriticalOption> criticalOptions,
java.util.List<CertificateExtension> extensions,
SshKeyPair signedBy) |
static SshCertificate |
SshCertificateAuthority.generateCertificate(SshKeyPair key,
long serial,
int type,
java.lang.String keyId,
java.lang.String principal,
int validityDays,
java.util.List<CertificateExtension> extensions,
SshKeyPair signedBy) |
static SshCertificate |
SshCertificateAuthority.generateCertificate(SshKeyPair key,
long serial,
int type,
java.lang.String keyId,
java.lang.String principal,
int validityDays,
SshKeyPair signedBy) |
static SshCertificate |
SshCertificateAuthority.generateHostCertificate(SshKeyPair key,
long serial,
java.lang.String hostname,
int validityDays,
SshKeyPair signedBy) |
SshKeyPair |
KeyGenerator.generateKey(int bits) |
static SshKeyPair |
SshKeyPairGenerator.generateKeyPair(java.lang.String algorithm)
Generate a new key pair using the default bit size.
|
static SshKeyPair |
SshKeyPairGenerator.generateKeyPair(java.lang.String algorithm,
int bits)
Generates a new key pair.
|
static SshCertificate |
SshCertificateAuthority.generateUserCertificate(SshKeyPair key,
long serial,
java.lang.String principalName,
int validityDays,
SshKeyPair signedBy) |
byte[] |
OpenSshCertificate.getEncoded() |
java.lang.String |
OpenSshCertificate.getFingerprint() |
void |
OpenSshCertificate.init(byte[] blob,
int start,
int len) |
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 |
|---|---|
protected byte[] |
AbstractMD5Extension.doMD5Hash(byte[] handle,
long startOffset,
long length,
byte[] quickCheckHash,
SftpSubsystem sftp) |
protected byte[] |
AbstractMD5Extension.doMD5Hash(java.lang.String filename,
long startOffset,
long length,
byte[] quickCheckHash,
SftpSubsystem sftp) |
| Modifier and Type | Method and Description |
|---|---|
SshException |
SshIOException.getRealException()
Get the real exception
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
SshKeyFingerprint.getFingerprint(byte[] encoded)
Generate an SSH key fingerprint as defined in
draft-ietf-secsh-fingerprint-00.txt.
|
static java.lang.String |
SshKeyFingerprint.getFingerprint(byte[] encoded,
java.lang.String algorithm)
Generate an SSH key fingerprint with a specific algorithm.
|
| Constructor and Description |
|---|
SshIOException(SshException realEx)
Construct the exception with the real exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
ComponentFactory.changePositionofAlgorithm(java.lang.String name,
int position) |
void |
ComponentFactory.configureSecurityLevel(SecurityLevel securityLevel) |
abstract SshDsaPrivateKey |
ComponentManager.createDsaPrivateKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger x,
java.math.BigInteger y)
Create an instance of a DSA private key.
|
abstract SshDsaPublicKey |
ComponentManager.createDsaPublicKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y)
Create an instance of a DSA public key.
|
java.lang.String |
ComponentFactory.createNewOrdering(int[] ordering) |
abstract SshRsaPrivateCrtKey |
ComponentManager.createRsaPrivateCrtKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger primeP,
java.math.BigInteger primeQ,
java.math.BigInteger crtCoefficient)
Create an instance of an RSA co-effecient private key.
|
abstract SshRsaPrivateCrtKey |
ComponentManager.createRsaPrivateCrtKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger primeP,
java.math.BigInteger primeQ,
java.math.BigInteger primeExponentP,
java.math.BigInteger primeExponentQ,
java.math.BigInteger crtCoefficient)
Create an instance of an RSA co-efficent private key.
|
abstract SshRsaPrivateKey |
ComponentManager.createRsaPrivateKey(java.math.BigInteger modulus,
java.math.BigInteger privateExponent)
Create an instance of an RSA private key.
|
abstract SshRsaPublicKey |
ComponentManager.createRsaPublicKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent)
Create an instance of an RSA public key.
|
abstract SshRsaPublicKey |
ComponentManager.createSsh2RsaPublicKey()
Create an instance of an SSH2 RSA public key.
|
java.math.BigInteger |
SshRsaPrivateCrtKey.doPrivate(java.math.BigInteger input) |
java.math.BigInteger |
SshRsaPublicKey.doPublic(java.math.BigInteger input) |
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.generateEd25519KeyPair() |
abstract SshKeyPair |
ComponentManager.generateRsaKeyPair(int bits,
int version)
Generate an RSA public/private pair.
|
Digest |
ComponentManager.getDigest(java.lang.String name) |
byte[] |
SshPublicKey.getEncoded()
Encode the public key into a blob of binary data, the encoded result will be
passed into init to recreate the key.
|
java.lang.String |
SshPublicKey.getFingerprint()
Return an SSH fingerprint of the public key
|
T |
ComponentFactory.getInstance(java.lang.String name)
Get a new instance of a supported component.
|
abstract SshSecureRandomGenerator |
ComponentManager.getRND()
Get the secure random number generator.
|
protected void |
ComponentManager.init() |
void |
NoneHmac.init(byte[] keydata) |
void |
SshHmac.init(byte[] keydata) |
void |
SshPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data.
|
void |
SshSecureRandomGenerator.nextBytes(byte[] bytes,
int off,
int len) |
java.lang.String |
ComponentFactory.order(java.lang.String[] ordering) |
java.lang.String |
ComponentFactory.selectStrongestComponent(java.lang.String[] remoteAlgs) |
void |
ComponentManager.setMinimumSecurityLevel(SecurityLevel securityLevel) |
void |
SshKeyExchangeLegacy.test() |
boolean |
SshPublicKey.verifySignature(byte[] signature,
byte[] data)
Verify the signature.
|
| Modifier and Type | Method and Description |
|---|---|
SshDsaPrivateKey |
JCEComponentManager.createDsaPrivateKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger x,
java.math.BigInteger y) |
SshDsaPublicKey |
JCEComponentManager.createDsaPublicKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y) |
SshRsaPrivateCrtKey |
JCEComponentManager.createRsaPrivateCrtKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger primeP,
java.math.BigInteger primeQ,
java.math.BigInteger crtCoefficient) |
SshRsaPrivateCrtKey |
JCEComponentManager.createRsaPrivateCrtKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger primeP,
java.math.BigInteger primeQ,
java.math.BigInteger primeExponentP,
java.math.BigInteger primeExponentQ,
java.math.BigInteger crtCoefficient) |
SshRsaPrivateKey |
JCEComponentManager.createRsaPrivateKey(java.math.BigInteger modulus,
java.math.BigInteger privateExponent) |
SshRsaPublicKey |
JCEComponentManager.createRsaPublicKey(java.math.BigInteger modulus,
java.math.BigInteger publicExponent) |
SshRsaPublicKey |
JCEComponentManager.createSsh2RsaPublicKey() |
protected void |
OpenSshRsaCertificate.decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) |
protected void |
OpenSshEd25519Certificate.decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) |
protected void |
OpenSshEcdsaCertificate.decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) |
java.math.BigInteger |
Ssh2RsaPrivateCrtKey.doPrivate(java.math.BigInteger input) |
java.math.BigInteger |
Ssh2RsaPublicKey.doPublic(java.math.BigInteger input) |
java.math.BigInteger |
OpenSshRsaCertificate.doPublic(java.math.BigInteger input) |
SshKeyPair |
JCEComponentManager.generateDsaKeyPair(int bits) |
SshKeyPair |
JCEComponentManager.generateEcdsaKeyPair(int bits) |
SshKeyPair |
JCEComponentManager.generateEd25519KeyPair() |
SshKeyPair |
JCEComponentManager.generateRsaKeyPair(int bits,
int version) |
byte[] |
Ssh2RsaPublicKey.getEncoded() |
byte[] |
Ssh2DsaPublicKey.getEncoded()
Encode the public key into a blob of binary data, the encoded result will
be passed into init to recreate the key.
|
byte[] |
SshEd448PublicKeyJCE.getEncoded() |
byte[] |
Ssh2EcdsaSha2NistPublicKey.getEncoded() |
byte[] |
SshEd25519PublicKeyJCE.getEncoded() |
java.lang.String |
Ssh2RsaPublicKey.getFingerprint() |
java.lang.String |
Ssh2DsaPublicKey.getFingerprint() |
java.lang.String |
SshEd448PublicKeyJCE.getFingerprint() |
java.lang.String |
Ssh2EcdsaSha2NistPublicKey.getFingerprint() |
java.lang.String |
SshEd25519PublicKeyJCE.getFingerprint() |
SshSecureRandomGenerator |
JCEComponentManager.getRND() |
void |
HmacSha1ETM.init(byte[] keydata) |
void |
HmacSha512.init(byte[] keydata) |
void |
HmacSha1.init(byte[] keydata) |
void |
HmacRipeMd160ETM.init(byte[] keydata) |
void |
HmacRipeMd160.init(byte[] keydata) |
void |
HmacSha512ETM.init(byte[] keydata) |
void |
HmacSha256_at_ssh_dot_com.init(byte[] keydata) |
void |
AbstractHmac.init(byte[] keydata) |
void |
HmacSha256ETM.init(byte[] keydata) |
void |
HmacSha196.init(byte[] keydata) |
void |
HmacSha256.init(byte[] keydata) |
void |
Ssh2RsaPublicKey.init(byte[] blob,
int start,
int len) |
void |
Ssh2DsaPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data.
|
void |
SshEd448PublicKeyJCE.init(byte[] blob,
int start,
int len) |
void |
Ssh2EcdsaSha2NistPublicKey.init(byte[] blob,
int start,
int len) |
void |
SshEd25519PublicKeyJCE.init(byte[] blob,
int start,
int len) |
void |
SecureRND.nextBytes(byte[] bytes,
int off,
int len) |
boolean |
Ssh2RsaPublicKey.verifySignature(byte[] signature,
byte[] data) |
boolean |
Ssh2DsaPublicKey.verifySignature(byte[] signature,
byte[] data)
Verify the signature.
|
boolean |
OpenSshRsaCertificate.verifySignature(byte[] signature,
byte[] data) |
boolean |
OpenSshEd25519Certificate.verifySignature(byte[] signature,
byte[] data)
Verify the signature.
|
boolean |
SshEd448PublicKeyJCE.verifySignature(byte[] signature,
byte[] data) |
boolean |
OpenSshEcdsaCertificate.verifySignature(byte[] signature,
byte[] data) |
boolean |
Ssh2EcdsaSha2NistPublicKey.verifySignature(byte[] signature,
byte[] data) |
boolean |
SshEd25519PublicKeyJCE.verifySignature(byte[] signature,
byte[] data) |
| Constructor and Description |
|---|
Ssh2DsaPrivateKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger x,
java.math.BigInteger y) |
| Modifier and Type | Method and Description |
|---|---|
void |
SshMessage.messageSent(java.lang.Long sequenceNo) |
Copyright © 2022. All rights reserved.