public class SshCertificateAuthority extends Object
Constructor and Description |
---|
SshCertificateAuthority() |
Modifier and Type | Method and Description |
---|---|
static SshCertificate |
generateCertificate(SshKeyPair key,
long serial,
int type,
String keyId,
List<String> validPrincipals,
int validityDays,
List<CriticalOption> criticalOptions,
List<CertificateExtension> extensions,
SshKeyPair signedBy) |
static SshCertificate |
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 |
generateCertificate(SshKeyPair key,
long serial,
int type,
String keyId,
String principal,
int validityDays,
List<CertificateExtension> extensions,
SshKeyPair signedBy) |
static SshCertificate |
generateCertificate(SshKeyPair key,
long serial,
int type,
String keyId,
String principal,
int validityDays,
SshKeyPair signedBy) |
static OpenSshCertificate |
generateCertificate(SshPublicKey key,
long serial,
int type,
String keyId,
List<String> validPrincipals,
int validityDays,
List<CriticalOption> criticalOptions,
List<CertificateExtension> extensions,
SshKeyPair signedBy) |
static OpenSshCertificate |
generateCertificate(SshPublicKey key,
long serial,
int type,
String keyId,
String principal,
int validityDays,
List<CertificateExtension> extensions,
SshKeyPair signedBy) |
static OpenSshCertificate |
generateCertificate(SshPublicKey key,
long serial,
int type,
String keyId,
String principal,
int validityDays,
SshKeyPair signedBy) |
static SshCertificate |
generateHostCertificate(SshKeyPair key,
long serial,
String hostname,
int validityDays,
SshKeyPair signedBy) |
static OpenSshCertificate |
generateHostCertificate(SshPublicKey key,
long serial,
String hostname,
int validityDays,
SshKeyPair signedBy) |
static SshCertificate |
generateUserCertificate(SshKeyPair key,
long serial,
String principalName,
int validityDays,
SshKeyPair signedBy) |
static OpenSshCertificate |
generateUserCertificate(SshPublicKey key,
long serial,
String principalName,
int validityDays,
SshKeyPair signedBy) |
public static OpenSshCertificate generateUserCertificate(SshPublicKey key, long serial, String principalName, int validityDays, SshKeyPair signedBy) throws SshException, IOException
SshException
IOException
public static SshCertificate generateUserCertificate(SshKeyPair key, long serial, String principalName, int validityDays, SshKeyPair signedBy) throws SshException, IOException
SshException
IOException
public static OpenSshCertificate generateHostCertificate(SshPublicKey key, long serial, String hostname, int validityDays, SshKeyPair signedBy) throws SshException, IOException
SshException
IOException
public static SshCertificate generateHostCertificate(SshKeyPair key, long serial, String hostname, int validityDays, SshKeyPair signedBy) throws SshException, IOException
SshException
IOException
public static OpenSshCertificate generateCertificate(SshPublicKey key, long serial, int type, String keyId, String principal, int validityDays, SshKeyPair signedBy) throws SshException, IOException
SshException
IOException
public static SshCertificate generateCertificate(SshKeyPair key, long serial, int type, String keyId, String principal, int validityDays, SshKeyPair signedBy) throws SshException, IOException
SshException
IOException
public static OpenSshCertificate generateCertificate(SshPublicKey key, long serial, int type, String keyId, String principal, int validityDays, List<CertificateExtension> extensions, SshKeyPair signedBy) throws SshException, IOException
SshException
IOException
public static SshCertificate generateCertificate(SshKeyPair key, long serial, int type, String keyId, String principal, int validityDays, List<CertificateExtension> extensions, SshKeyPair signedBy) throws SshException, IOException
SshException
IOException
public static SshCertificate generateCertificate(SshKeyPair key, long serial, int type, String keyId, List<String> validPrincipals, int validityDays, List<CriticalOption> criticalOptions, List<CertificateExtension> extensions, SshKeyPair signedBy) throws SshException, IOException
SshException
IOException
public static OpenSshCertificate generateCertificate(SshPublicKey key, long serial, int type, String keyId, List<String> validPrincipals, int validityDays, List<CriticalOption> criticalOptions, List<CertificateExtension> extensions, SshKeyPair signedBy) throws SshException, IOException
SshException
IOException
@Deprecated public static SshCertificate generateCertificate(SshKeyPair key, long serial, int type, String keyId, List<String> validPrincipals, int validityDays, Map<String,String> criticalOptions, List<String> extensions, SshKeyPair signedBy) throws SshException, IOException
key
- serial
- type
- keyId
- validPrincipals
- validityDays
- criticalOptions
- extensions
- signedBy
- SshException
IOException
Copyright © 2024. All rights reserved.