Class SelfSignedX509CertificateAndSigningKey

java.lang.Object
org.wildfly.security.x500.cert.SelfSignedX509CertificateAndSigningKey

public final class SelfSignedX509CertificateAndSigningKey extends Object
A self-signed X.509 certificate and the private key used to sign the certificate. This class can be used to generate a PKCS #10 certificate signing request.
Since:
1.2.0
Author:
Farah Juma
  • Method Details

    • getSelfSignedCertificate

      public X509Certificate getSelfSignedCertificate()
      Get the self-signed X.509 certificate.
      Returns:
      the self-signed X.509 certificate
    • getSigningKey

      public PrivateKey getSigningKey()
      Get the private key used to sign the self-signed X.509 certificate.
      Returns:
      the private key used to sign the self-signed X.509 certificate
    • generatePKCS10CertificateSigningRequest

      public PKCS10CertificateSigningRequest generatePKCS10CertificateSigningRequest()
      Generate a PKCS #10 certificate signing request using the self-signed X.509 certificate and the signing key.
      Returns:
      a PKCS #10 certificate signing request
    • builder

      Construct a new builder instance.
      Returns:
      the new builder instance