Interface SelfSignedCertificate
Deprecated, for removal: This API element is subject to removal in a future version.
this class does not work reliably and consistently on stock Java distributions
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 TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Filesystem path to the X.509 certificate file in PEM format .static SelfSignedCertificatecreate()Deprecated, for removal: This API element is subject to removal in a future version.Create a newSelfSignedCertificateinstance.static SelfSignedCertificateDeprecated, for removal: This API element is subject to removal in a future version.Create a newSelfSignedCertificateinstance with a fully-qualified domain name,voiddelete()Deprecated, for removal: This API element is subject to removal in a future version.Delete the private key and certificate files.Deprecated, for removal: This API element is subject to removal in a future version.Provides theKeyCertOptionsRSA private key file in PEM format corresponding to theprivateKeyPath()Deprecated, for removal: This API element is subject to removal in a future version.Filesystem path to the RSA private key file in PEM formatDeprecated, for removal: This API element is subject to removal in a future version.Provides theTrustOptionsX.509 certificate file in PEM format corresponding to thecertificatePath()
-
Method Details
-
keyCertOptions
PemKeyCertOptions keyCertOptions()Deprecated, for removal: This API element is subject to removal in a future version.Provides theKeyCertOptionsRSA private key file in PEM format corresponding to theprivateKeyPath()- Returns:
- a
PemKeyCertOptionsbased on the generated certificate.
-
trustOptions
PemTrustOptions trustOptions()Deprecated, for removal: This API element is subject to removal in a future version.Provides theTrustOptionsX.509 certificate file in PEM format corresponding to thecertificatePath()- Returns:
- a
PemTrustOptionsbased on the generated certificate.
-
privateKeyPath
String privateKeyPath()Deprecated, for removal: This API element is subject to removal in a future version.Filesystem path to the RSA private key file in PEM format- Returns:
- the absolute path to the private key.
-
certificatePath
String certificatePath()Deprecated, for removal: This API element is subject to removal in a future version.Filesystem path to the X.509 certificate file in PEM format .- Returns:
- the absolute path to the certificate.
-
delete
void delete()Deprecated, for removal: This API element is subject to removal in a future version.Delete the private key and certificate files. -
create
Deprecated, for removal: This API element is subject to removal in a future version.Create a newSelfSignedCertificateinstance.- Returns:
- a new instance.
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Create a newSelfSignedCertificateinstance with a fully-qualified domain name,- Parameters:
fqdn- a fully qualified domain name.- Returns:
- a new instance.
-