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})
}
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private boolean | |
| private SubjectPublicKeyInfo | |
| private X500Name |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PKCS10CertificationRequestBuilder(X500Name
the X.500 Name defining the certificate subject this request is for. subject, SubjectPublicKeyInfo the info structure for the public key to be associated with this subject. publicKeyInfo)Basic constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public PKCS10CertificationRequestBuilder | Returns: this builder object.the OID giving the type of the attribute. attrType, ASN1Encodable the ASN.1 structure that forms the value of the attribute. attrValue)Add an attribute to the certification request we are building. |
| public PKCS10CertificationRequestBuilder | Returns: this builder object.the OID giving the type of the attribute. attrType, ASN1Encodable[] an array of ASN.1 structures that form the value of the attribute. attrValues)Add an attribute with multiple values to the certification request we are building. |
| public PKCS10CertificationRequest | Returns: a holder containing the resulting PKCS#10 certification request.the content signer to be used to generate the signature validating the certificate. signer)Generate an PKCS#10 request based on the past in signer. |
| public PKCS10CertificationRequestBuilder | Returns: this builder object.the OID giving the type of the attribute. attrType, ASN1Encodable the ASN.1 structure that forms the value of the attribute. attrValue)Set an attribute to the certification request we are building. |
| public PKCS10CertificationRequestBuilder | Returns: this builder object.the OID giving the type of the attribute. attrType, ASN1Encodable[] the ASN.1 structure that forms the value of the attribute. attrValue)Add an attribute with multiple values to the certification request we are building. |
| public PKCS10CertificationRequestBuilder | Returns: this builder object.true if empty attributes should be left out of the encoding false otherwise. leaveOffEmpty)The attributes field in PKCS10 should encoded to an empty tagged set if there are no attributes. |
| attributes | back to summary |
|---|---|
| private List<E> attributes | |
| leaveOffEmpty | back to summary |
|---|---|
| private boolean leaveOffEmpty | |
| publicKeyInfo | back to summary |
|---|---|
| private SubjectPublicKeyInfo publicKeyInfo | |
| subject | back to summary |
|---|---|
| private X500Name subject | |
| PKCS10CertificationRequestBuilder | back to summary |
|---|---|
| public PKCS10CertificationRequestBuilder(PKCS10CertificationRequestBuilder original) | |
| PKCS10CertificationRequestBuilder | back to summary |
|---|---|
| public PKCS10CertificationRequestBuilder(X500Name subject, SubjectPublicKeyInfo publicKeyInfo) Basic constructor.
| |
| addAttribute | back to summary |
|---|---|
| public PKCS10CertificationRequestBuilder addAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable attrValue) Add an attribute to the certification request we are building.
| |
| addAttribute | back to summary |
|---|---|
| public PKCS10CertificationRequestBuilder addAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable[] attrValues) Add an attribute with multiple values to the certification request we are building.
| |
| build | back to summary |
|---|---|
| public PKCS10CertificationRequest build(ContentSigner signer) Generate an PKCS#10 request based on the past in signer.
| |
| setAttribute | back to summary |
|---|---|
| public PKCS10CertificationRequestBuilder setAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable attrValue) Set an attribute to the certification request we are building. Removed existing attributes with the same attrType.
| |
| setAttribute | back to summary |
|---|---|
| public PKCS10CertificationRequestBuilder setAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable[] attrValue) Add an attribute with multiple values to the certification request we are building. Removed existing attributes with the same attrType.
| |
| setLeaveOffEmptyAttributes | back to summary |
|---|---|
| public PKCS10CertificationRequestBuilder setLeaveOffEmptyAttributes(boolean leaveOffEmpty) The attributes field in PKCS10 should encoded to an empty tagged set if there are no attributes. Some CAs will reject requests with the attribute field present.
| |