Interface SelfSignedCertificate


@Deprecated(forRemoval=true) public 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 Type
    Method
    Description
    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 .
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a new SelfSignedCertificate instance.
    create(String fqdn)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a new SelfSignedCertificate instance with a fully-qualified domain name,
    void
    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 the KeyCertOptions RSA private key file in PEM format corresponding to the 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
    Deprecated, for removal: This API element is subject to removal in a future version.
    Provides the TrustOptions X.509 certificate file in PEM format corresponding to the certificatePath()
  • Method Details

    • keyCertOptions

      PemKeyCertOptions keyCertOptions()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Provides the KeyCertOptions RSA private key file in PEM format corresponding to the privateKeyPath()
      Returns:
      a PemKeyCertOptions based on the generated certificate.
    • trustOptions

      PemTrustOptions trustOptions()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Provides the TrustOptions X.509 certificate file in PEM format corresponding to the certificatePath()
      Returns:
      a PemTrustOptions based 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

      static SelfSignedCertificate create()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new SelfSignedCertificate instance.
      Returns:
      a new instance.
    • create

      static SelfSignedCertificate create(String fqdn)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new SelfSignedCertificate instance with a fully-qualified domain name,
      Parameters:
      fqdn - a fully qualified domain name.
      Returns:
      a new instance.