Package com.sshtools.common.publickey
Class SshCertificateAuthority
java.lang.Object
com.sshtools.common.publickey.SshCertificateAuthority
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SshCertificategenerateCertificate(SshKeyPair key, long serial, int type, String keyId, String principal, int validityDays, SshKeyPair signedBy) static SshCertificategenerateCertificate(SshKeyPair key, long serial, int type, String keyId, String principal, int validityDays, List<CertificateExtension> extensions, SshKeyPair signedBy) static SshCertificategenerateCertificate(SshKeyPair key, long serial, int type, String keyId, List<String> validPrincipals, int validity, int validityTimeUnit, TimeZone timeZone, List<CriticalOption> criticalOptions, List<CertificateExtension> extensions, SshKeyPair signedBy) static SshCertificategenerateCertificate(SshKeyPair key, long serial, int type, String keyId, List<String> validPrincipals, int validityDays, List<CriticalOption> criticalOptions, List<CertificateExtension> extensions, SshKeyPair signedBy) static SshCertificategenerateHostCertificate(SshKeyPair key, long serial, String hostname, int validityDays, SshKeyPair signedBy) static SshCertificategenerateUserCertificate(SshKeyPair key, long serial, String principalName, int validityDays, SshKeyPair signedBy)
-
Constructor Details
-
SshCertificateAuthority
public SshCertificateAuthority()
-
-
Method Details
-
generateUserCertificate
public static SshCertificate generateUserCertificate(SshKeyPair key, long serial, String principalName, int validityDays, SshKeyPair signedBy) throws SshException, IOException - Throws:
SshExceptionIOException
-
generateHostCertificate
public static SshCertificate generateHostCertificate(SshKeyPair key, long serial, String hostname, int validityDays, SshKeyPair signedBy) throws SshException, IOException - Throws:
SshExceptionIOException
-
generateCertificate
public static SshCertificate generateCertificate(SshKeyPair key, long serial, int type, String keyId, String principal, int validityDays, SshKeyPair signedBy) throws SshException, IOException - Throws:
SshExceptionIOException
-
generateCertificate
public static SshCertificate generateCertificate(SshKeyPair key, long serial, int type, String keyId, String principal, int validityDays, List<CertificateExtension> extensions, SshKeyPair signedBy) throws SshException, IOException - Throws:
SshExceptionIOException
-
generateCertificate
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 - Throws:
SshExceptionIOException
-
generateCertificate
public static SshCertificate generateCertificate(SshKeyPair key, long serial, int type, String keyId, List<String> validPrincipals, int validity, int validityTimeUnit, TimeZone timeZone, List<CriticalOption> criticalOptions, List<CertificateExtension> extensions, SshKeyPair signedBy) throws SshException, IOException - Throws:
SshExceptionIOException
-