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
ConstructorsConstructorDescriptionTestCertificate(String fqdn)Creates a new self signed certificate using the provided fqdn. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()io.vertx.core.net.PemKeyCertOptionsio.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:
keyCertOptionsin interfaceio.vertx.core.net.SelfSignedCertificate
-
trustOptions
public io.vertx.core.net.PemTrustOptions trustOptions()- Specified by:
trustOptionsin interfaceio.vertx.core.net.SelfSignedCertificate
-
privateKeyPath
- Specified by:
privateKeyPathin interfaceio.vertx.core.net.SelfSignedCertificate
-
certificatePath
- Specified by:
certificatePathin interfaceio.vertx.core.net.SelfSignedCertificate
-
delete
public void delete()- Specified by:
deletein interfaceio.vertx.core.net.SelfSignedCertificate
-
getPublicKey
- Returns:
- the public key of this certificate.
-
getPrivateKey
- Returns:
- the private key of this certificate.
-