Package | Description |
---|---|
com.maverick.ssh.components |
This package contains an abstract cryptographic provider for the SSH protocol.
|
com.maverick.ssh.components.jce |
This package contains a set of algoritm implementations that enable the Maverick API
to use a Java Cryptography Extension provider.
|
com.maverick.sshd |
This package contains the base implementation of the SSH server.
|
com.maverick.util |
A set of SSHTools utility classes.
|
com.sshtools.publickey |
Modifier and Type | Class and Description |
---|---|
class |
SshCertificate |
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.generateEd25519KeyPair() |
abstract SshKeyPair |
ComponentManager.generateEd448KeyPair() |
abstract SshKeyPair |
ComponentManager.generateRsaKeyPair(int bits,
int version)
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) |
Constructor and Description |
---|
SshCertificate(SshKeyPair pair,
OpenSshCertificate certificate) |
Modifier and Type | Method and Description |
---|---|
SshKeyPair |
JCEComponentManager.generateDsaKeyPair(int bits) |
SshKeyPair |
JCEComponentManager.generateEcdsaKeyPair(int bits) |
SshKeyPair |
JCEComponentManager.generateEd25519KeyPair() |
SshKeyPair |
JCEComponentManager.generateEd448KeyPair() |
SshKeyPair |
JCEComponentManager.generateRsaKeyPair(int bits,
int version) |
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 |
---|---|
void |
OpenSshCertificate.sign(SshPublicKey publicKey,
UnsignedInteger64 serial,
int type,
String keyId,
List<String> validPrincipals,
UnsignedInteger64 validAfter,
UnsignedInteger64 validBefore,
List<CriticalOption> criticalOptions,
List<CertificateExtension> extensions,
SshKeyPair signingKey) |
Modifier and Type | Method and Description |
---|---|
static SshKeyPair |
SshContext.GenerateKeyFiles(File keyFilename,
String type,
int bitlength,
int privateKeyFormat,
int publicKeyFormat)
Deprecated.
use generateKeyFiles instead.
|
static SshKeyPair |
SshContext.generateKeyFiles(File keyFilename,
String type,
int bitlength,
int privateKeyFormat,
int publicKeyFormat,
String passphrase)
Generate a public and private key pair, save them to keyFilename and
keyFilename.pub, return the key pair
|
SshKeyPair |
SshContext.getHostKey(String algorithm)
Get the SSHD host key for a given algorithm.
|
SshKeyPair[] |
SshContext.getHostKeys()
Get all the hosts keys.
|
SshKeyPair |
SshContext.loadKey(File key,
String passphrase) |
SshKeyPair |
SshContext.loadKey(InputStream in,
String passphrase) |
Modifier and Type | Method and Description |
---|---|
void |
SshContext.addHostKey(SshKeyPair keyPair)
Add a host key to the configuration.
|
Modifier and Type | Method and Description |
---|---|
static SshKeyPair |
SshKeyUtils.makeRSAWithSHA256Signature(SshKeyPair pair) |
static SshKeyPair |
SshKeyUtils.makeRSAWithSHA512Signature(SshKeyPair pair) |
static void |
SshKeyUtils.savePrivateKey(SshKeyPair pair,
String passphrase,
String comment,
File privateKeyFile) |
Modifier and Type | Method and Description |
---|---|
static SshKeyPair |
SshKeyPairGenerator.generateKeyPair() |
static SshKeyPair |
SshKeyPairGenerator.generateKeyPair(String algorithm) |
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,
int format) |
static void |
SshPrivateKeyFileFactory.createFile(SshKeyPair key,
String passphrase,
String comment,
int format,
File toFile)
Take a SshPrivateKey and write it to a
file.
|
static SshCertificate |
SshCertificateAuthority.generateCertificate(SshKeyPair key,
long serial,
int type,
String keyId,
List<String> validPrincipals,
int validityDays,
List<CriticalOption> criticalOptions,
List<CertificateExtension> extensions,
SshKeyPair signedBy) |
static SshCertificate |
SshCertificateAuthority.generateCertificate(SshKeyPair key,
long serial,
int type,
String keyId,
List<String> validPrincipals,
int validityDays,
Map<String,String> criticalOptions,
List<String> extensions,
SshKeyPair signedBy)
Deprecated.
This method does not handle extensions correctly. Use alternative method that takes CertificateExtension
instances for extensions and critical options.
|
static SshCertificate |
SshCertificateAuthority.generateCertificate(SshKeyPair key,
long serial,
int type,
String keyId,
String principal,
int validityDays,
List<CertificateExtension> extensions,
SshKeyPair signedBy) |
static SshCertificate |
SshCertificateAuthority.generateCertificate(SshKeyPair key,
long serial,
int type,
String keyId,
String principal,
int validityDays,
SshKeyPair signedBy) |
static OpenSshCertificate |
SshCertificateAuthority.generateCertificate(SshPublicKey key,
long serial,
int type,
String keyId,
List<String> validPrincipals,
int validityDays,
List<CriticalOption> criticalOptions,
List<CertificateExtension> extensions,
SshKeyPair signedBy) |
static OpenSshCertificate |
SshCertificateAuthority.generateCertificate(SshPublicKey key,
long serial,
int type,
String keyId,
String principal,
int validityDays,
List<CertificateExtension> extensions,
SshKeyPair signedBy) |
static OpenSshCertificate |
SshCertificateAuthority.generateCertificate(SshPublicKey key,
long serial,
int type,
String keyId,
String principal,
int validityDays,
SshKeyPair signedBy) |
static SshCertificate |
SshCertificateAuthority.generateHostCertificate(SshKeyPair key,
long serial,
String hostname,
int validityDays,
SshKeyPair signedBy) |
static OpenSshCertificate |
SshCertificateAuthority.generateHostCertificate(SshPublicKey key,
long serial,
String hostname,
int validityDays,
SshKeyPair signedBy) |
static SshCertificate |
SshCertificateAuthority.generateUserCertificate(SshKeyPair key,
long serial,
String principalName,
int validityDays,
SshKeyPair signedBy) |
static OpenSshCertificate |
SshCertificateAuthority.generateUserCertificate(SshPublicKey key,
long serial,
String principalName,
int validityDays,
SshKeyPair signedBy) |
Copyright © 2024. All rights reserved.