Top Description Methods
io.vertx.core.net

public Interface SelfSignedCertificate

Known Direct Implementers
io.vertx.core.net.impl.SelfSignedCertificateImpl
Annotations
@VertxGen
Imports
io.vertx.codegen.annotations.VertxGen, io.vertx.core.net.impl.SelfSignedCertificateImpl

A 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

Modifier and TypeMethod and Description
public String

Returns:

the absolute path to the certificate.
certificatePath
()

Filesystem path to the X.509 certificate file in PEM format .

public static SelfSignedCertificate

Returns:

a new instance.
create
()

Create a new SelfSignedCertificate instance.

public static SelfSignedCertificate

Returns:

a new instance.
create
(String
a fully qualified domain name.
fqdn
)

Create a new SelfSignedCertificate instance with a fully-qualified domain name,

public void
delete()

Delete the private key and certificate files.

public PemKeyCertOptions

Returns:

a PemKeyCertOptions based on the generated certificate.
keyCertOptions
()

Provides the KeyCertOptions RSA private key file in PEM format corresponding to the privateKeyPath()

public String

Returns:

the absolute path to the private key.
privateKeyPath
()

Filesystem path to the RSA private key file in PEM format

public PemTrustOptions

Returns:

a PemTrustOptions based on the generated certificate.
trustOptions
()

Provides the TrustOptions X.509 certificate file in PEM format corresponding to the certificatePath()

Method Detail

certificatePathback to summary
public String certificatePath()

Filesystem path to the X.509 certificate file in PEM format .

Returns:String

the absolute path to the certificate.

createback to summary
public static SelfSignedCertificate create()

Create a new SelfSignedCertificate instance.

Returns:SelfSignedCertificate

a new instance.

createback to summary
public static SelfSignedCertificate create(String fqdn)

Create a new SelfSignedCertificate instance with a fully-qualified domain name,

Parameters
fqdn:String

a fully qualified domain name.

Returns:SelfSignedCertificate

a new instance.

deleteback to summary
public void delete()

Delete the private key and certificate files.

keyCertOptionsback to summary
public PemKeyCertOptions keyCertOptions()

Provides the KeyCertOptions RSA private key file in PEM format corresponding to the privateKeyPath()

Returns:PemKeyCertOptions

a PemKeyCertOptions based on the generated certificate.

privateKeyPathback to summary
public String privateKeyPath()

Filesystem path to the RSA private key file in PEM format

Returns:String

the absolute path to the private key.

trustOptionsback to summary
public PemTrustOptions trustOptions()

Provides the TrustOptions X.509 certificate file in PEM format corresponding to the certificatePath()

Returns:PemTrustOptions

a PemTrustOptions based on the generated certificate.