Class TestCertificate

java.lang.Object
com.codingchili.core.security.TestCertificate
All Implemented Interfaces:
io.vertx.core.net.SelfSignedCertificate

public class TestCertificate extends Object implements io.vertx.core.net.SelfSignedCertificate
Copied from SelfSignedCertificate because we need to access the underlying certificate, for the public and private key.
  • Constructor Details

    • TestCertificate

      public TestCertificate(String fqdn)
      Creates a new self signed certificate using the provided fqdn.
      Parameters:
      fqdn - of the certificate to generate.
  • Method Details

    • keyCertOptions

      public io.vertx.core.net.PemKeyCertOptions keyCertOptions()
      Specified by:
      keyCertOptions in interface io.vertx.core.net.SelfSignedCertificate
    • trustOptions

      public io.vertx.core.net.PemTrustOptions trustOptions()
      Specified by:
      trustOptions in interface io.vertx.core.net.SelfSignedCertificate
    • privateKeyPath

      public String privateKeyPath()
      Specified by:
      privateKeyPath in interface io.vertx.core.net.SelfSignedCertificate
    • certificatePath

      public String certificatePath()
      Specified by:
      certificatePath in interface io.vertx.core.net.SelfSignedCertificate
    • delete

      public void delete()
      Specified by:
      delete in interface io.vertx.core.net.SelfSignedCertificate
    • getPublicKey

      public PublicKey getPublicKey()
      Returns:
      the public key of this certificate.
    • getPrivateKey

      public PrivateKey getPrivateKey()
      Returns:
      the private key of this certificate.