Package org.wildfly.security.x500.cert
Class SelfSignedX509CertificateAndSigningKey
java.lang.Object
org.wildfly.security.x500.cert.SelfSignedX509CertificateAndSigningKey
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 ClassesModifier and TypeClassDescriptionstatic classABuilderto configure and generate aSelfSignedX509CertificateAndSigningKey. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Construct a new builder instance.Generate a PKCS #10 certificate signing request using the self-signed X.509 certificate and the signing key.Get the self-signed X.509 certificate.Get the private key used to sign the self-signed X.509 certificate.
-
Method Details
-
getSelfSignedCertificate
Get the self-signed X.509 certificate.- Returns:
- the self-signed X.509 certificate
-
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
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
-