Package io.vertx.core.net
Interface SelfSignedCertificate
-
public interface SelfSignedCertificateA self-signed certificate helper for testing and development purposes.While it helps for testing and development, it should never ever be used in production settings.
- Author:
- Julien Ponge
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcertificatePath()Filesystem path to the X.509 certificate file in PEM format .static SelfSignedCertificatecreate()Create a newSelfSignedCertificateinstance.static SelfSignedCertificatecreate(String fqdn)Create a newSelfSignedCertificateinstance with a fully-qualified domain name,voiddelete()Delete the private key and certificate files.PemKeyCertOptionskeyCertOptions()Provides theKeyCertOptionsRSA private key file in PEM format corresponding to theprivateKeyPath()StringprivateKeyPath()Filesystem path to the RSA private key file in PEM formatPemTrustOptionstrustOptions()Provides theTrustOptionsX.509 certificate file in PEM format corresponding to thecertificatePath()
-
-
-
Method Detail
-
keyCertOptions
PemKeyCertOptions keyCertOptions()
Provides theKeyCertOptionsRSA private key file in PEM format corresponding to theprivateKeyPath()- Returns:
- a
PemKeyCertOptionsbased on the generated certificate.
-
trustOptions
PemTrustOptions trustOptions()
Provides theTrustOptionsX.509 certificate file in PEM format corresponding to thecertificatePath()- Returns:
- a
PemTrustOptionsbased on the generated certificate.
-
privateKeyPath
String privateKeyPath()
Filesystem path to the RSA private key file in PEM format- Returns:
- the absolute path to the private key.
-
certificatePath
String certificatePath()
Filesystem path to the X.509 certificate file in PEM format .- Returns:
- the absolute path to the certificate.
-
delete
void delete()
Delete the private key and certificate files.
-
create
static SelfSignedCertificate create()
Create a newSelfSignedCertificateinstance.- Returns:
- a new instance.
-
create
static SelfSignedCertificate create(String fqdn)
Create a newSelfSignedCertificateinstance with a fully-qualified domain name,- Parameters:
fqdn- a fully qualified domain name.- Returns:
- a new instance.
-
-