Package org.wildfly.security.x500.cert
Class PKCS10CertificateSigningRequest
java.lang.Object
org.wildfly.security.x500.cert.PKCS10CertificateSigningRequest
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 ClassesModifier and TypeClassDescriptionstatic classABuilderto configure and generate aPKCS10CertificateSigningRequest. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Construct a new builder instance.byte[]Get this PKCS #10 certificate signing request in binary format.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.Get the public key associated with this PKCS #10 certificate signing request.Get the subject DN associated with this PKCS #10 certificate signing request.
-
Method Details
-
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
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
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
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
Construct a new builder instance.- Returns:
- the new builder instance
-