Package org.wildfly.security.x500.cert
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
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSelfSignedX509CertificateAndSigningKey.BuilderABuilderto configure and generate aSelfSignedX509CertificateAndSigningKey. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SelfSignedX509CertificateAndSigningKey.Builderbuilder()Construct a new builder instance.PKCS10CertificateSigningRequestgeneratePKCS10CertificateSigningRequest()Generate a PKCS #10 certificate signing request using the self-signed X.509 certificate and the signing key.X509CertificategetSelfSignedCertificate()Get the self-signed X.509 certificate.PrivateKeygetSigningKey()Get the private key used to sign the self-signed X.509 certificate. 
 - 
 
- 
- 
Method Detail
- 
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
public static SelfSignedX509CertificateAndSigningKey.Builder builder()
Construct a new builder instance.- Returns:
 - the new builder instance
 
 
 - 
 
 -