Package com.codingchili.core.security
Class TestCertificate
java.lang.Object
com.codingchili.core.security.TestCertificate
- All Implemented Interfaces:
io.vertx.core.net.SelfSignedCertificate
Copied from
SelfSignedCertificate
because we need to access
the underlying certificate, for the public and private key.-
Constructor Summary
ConstructorDescriptionTestCertificate(String fqdn)
Creates a new self signed certificate using the provided fqdn. -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
io.vertx.core.net.PemKeyCertOptions
io.vertx.core.net.PemTrustOptions
-
Constructor Details
-
TestCertificate
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 interfaceio.vertx.core.net.SelfSignedCertificate
-
trustOptions
public io.vertx.core.net.PemTrustOptions trustOptions()- Specified by:
trustOptions
in interfaceio.vertx.core.net.SelfSignedCertificate
-
privateKeyPath
- Specified by:
privateKeyPath
in interfaceio.vertx.core.net.SelfSignedCertificate
-
certificatePath
- Specified by:
certificatePath
in interfaceio.vertx.core.net.SelfSignedCertificate
-
delete
public void delete()- Specified by:
delete
in interfaceio.vertx.core.net.SelfSignedCertificate
-
getPublicKey
- Returns:
- the public key of this certificate.
-
getPrivateKey
- Returns:
- the private key of this certificate.
-