| Package | Description |
|---|---|
| com.maverick.util |
A set of SSHTools utility classes.
|
| com.sshtools.publickey |
This package contains utility classes for loading/storing public/private keys
and is based on the SSHTools key format architecture.
|
| Modifier and Type | Method and Description |
|---|---|
static SshCertificate |
SshKeyUtils.getCertificate(File privateKey,
String passphrase) |
static SshCertificate |
SshKeyUtils.getCertificate(File privateKey,
String passphrase,
File certFile) |
static SshCertificate |
SshKeyUtils.getCertificate(InputStream privateKey,
String passphrase,
InputStream certFile) |
static SshCertificate |
SshKeyUtils.getCertificate(String privateKey,
String passphrase,
String certFile) |
| Modifier and Type | Method and Description |
|---|---|
static void |
SshKeyUtils.saveCertificate(SshCertificate pair,
String passphrase,
String comment,
File privateKeyFile) |
| Modifier and Type | Method and Description |
|---|---|
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 SshCertificate |
SshCertificateAuthority.generateHostCertificate(SshKeyPair key,
long serial,
String hostname,
int validityDays,
SshKeyPair signedBy) |
static SshCertificate |
SshCertificateAuthority.generateUserCertificate(SshKeyPair key,
long serial,
String principalName,
int validityDays,
SshKeyPair signedBy) |
Copyright © 2025. All rights reserved.