Package org.wildfly.security.x500.cert
Class PKCS10CertificateSigningRequest
- java.lang.Object
-
- org.wildfly.security.x500.cert.PKCS10CertificateSigningRequest
-
public final class PKCS10CertificateSigningRequest extends Object
A PKCS #10 certificate signing request defined in RFC 2986 as:CertificationRequest ::= SEQUENCE { certificationRequestInfo CertificationRequestInfo, signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, signature BIT STRING } CertificationRequestInfo ::= SEQUENCE { version INTEGER { v1(0) } (v1,...), subject Name, subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, attributes [0] Attributes{{ CRIAttributes }} } Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }} Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE { type ATTRIBUTE.&id({IOSet}), values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{\@type}) } AlgorithmIdentifier {ALGORITHM:IOSet } ::= SEQUENCE { algorithm ALGORITHM.&id({IOSet}), parameters ALGORITHM.&Type({IOSet}{@algorithm}) OPTIONAL }
- Since:
- 1.2.0
- Author:
- Farah Juma
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PKCS10CertificateSigningRequest.Builder
ABuilder
to configure and generate aPKCS10CertificateSigningRequest
.
-
Field Summary
Fields Modifier and Type Field Description private byte[]
encoded
private List<X509CertificateExtension>
extensions
private PublicKey
publicKey
private X500Principal
subjectDn
-
Constructor Summary
Constructors Modifier Constructor Description private
PKCS10CertificateSigningRequest(PKCS10CertificateSigningRequest.Builder builder, byte[] encoded)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PKCS10CertificateSigningRequest.Builder
builder()
Construct a new builder instance.byte[]
getEncoded()
Get this PKCS #10 certificate signing request in binary format.List<X509CertificateExtension>
getExtensions()
Get the X.509 certificate extensions included in this PKCS #10 certificate signing request.byte[]
getPem()
Get this PKCS #10 certificate signing request in PEM format.PublicKey
getPublicKey()
Get the public key associated with this PKCS #10 certificate signing request.X500Principal
getSubjectDn()
Get the subject DN associated with this PKCS #10 certificate signing request.
-
-
-
Field Detail
-
publicKey
private final PublicKey publicKey
-
subjectDn
private final X500Principal subjectDn
-
extensions
private final List<X509CertificateExtension> extensions
-
encoded
private final byte[] encoded
-
-
Constructor Detail
-
PKCS10CertificateSigningRequest
private PKCS10CertificateSigningRequest(PKCS10CertificateSigningRequest.Builder builder, byte[] encoded)
-
-
Method Detail
-
getEncoded
public byte[] getEncoded()
Get this PKCS #10 certificate signing request in binary format.- Returns:
- this PKCS #10 certificate signing request in binary format
-
getPem
public byte[] getPem()
Get this PKCS #10 certificate signing request in PEM format.- Returns:
- this PKCS #10 certificate signing request in PEM format
-
getPublicKey
public PublicKey getPublicKey()
Get the public key associated with this PKCS #10 certificate signing request.- Returns:
- the public key associated with this PKCS #10 certificate signing request
-
getSubjectDn
public X500Principal getSubjectDn()
Get the subject DN associated with this PKCS #10 certificate signing request.- Returns:
- the subject DN associated with this PKCS #10 certificate signing request
-
getExtensions
public List<X509CertificateExtension> getExtensions()
Get the X.509 certificate extensions included in this PKCS #10 certificate signing request.- Returns:
- the X.509 certificate extensions included in this PKCS #10 certificate signing request
-
builder
public static PKCS10CertificateSigningRequest.Builder builder()
Construct a new builder instance.- Returns:
- the new builder instance
-
-