public class PKCS10CertificationRequestBuilder extends Object
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})
}
| Constructor and Description |
|---|
PKCS10CertificationRequestBuilder(X500Name subject,
SubjectPublicKeyInfo publicKeyInfo)
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PKCS10CertificationRequestBuilder |
addAttribute(ASN1ObjectIdentifier attrType,
ASN1Encodable attrValue)
Add an attribute to the certification request we are building.
|
PKCS10CertificationRequestBuilder |
addAttribute(ASN1ObjectIdentifier attrType,
ASN1Encodable[] attrValues)
Add an attribute with multiple values to the certification request we are building.
|
PKCS10CertificationRequestHolder |
build(ContentSigner signer)
Generate an PKCS#10 request based on the past in signer.
|
public PKCS10CertificationRequestBuilder(X500Name subject, SubjectPublicKeyInfo publicKeyInfo)
subject - the X.500 Name defining the certificate subject this request is for.publicKeyInfo - the info structure for the public key to be associated with this subject.public PKCS10CertificationRequestBuilder addAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable attrValue)
attrType - the OID giving the type of the attribute.attrValue - the ASN.1 structure that forms the value of the attribute.public PKCS10CertificationRequestBuilder addAttribute(ASN1ObjectIdentifier attrType, ASN1Encodable[] attrValues)
attrType - the OID giving the type of the attribute.attrValues - an array of ASN.1 structures that form the value of the attribute.public PKCS10CertificationRequestHolder build(ContentSigner signer)
signer - the content signer to be used to generate the signature validating the certificate.Copyright © 2015. All rights reserved.