CertificationRequest ::= SEQUENCE {
certificationRequestInfo CertificationRequestInfo,
signatureAlgorithm SignatureAlgorithmIdentifier,
signature Signature
}
SignatureAlgorithmIdentifier ::= AlgorithmIdentifier
Signature ::= BIT STRING
CertificationRequestInfo ::= SEQUENCE {
version Version,
subject Name,
subjectPublicKeyInfo SubjectPublicKeyInfo,
attributes [0] IMPLICIT Attributes
}
Attributes ::= SET OF Attribute
| Modifier and Type | Field and Description |
|---|---|
| private final PKCS10Attributes | |
| private byte[] | |
| private String | |
| private X500Name | |
| private final PublicKey |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PKCS10(PublicKey
the public key that should be placed
into the certificate generated by the CA. publicKey, PKCS10Attributes additional set of PKCS10 attributes requested
for in the certificate. attributes)Constructs an unsigned PKCS #10 certificate request. |
| public | PKCS10(byte[]
the DER-encoded PKCS #10 request. data)Parses an encoded, signed PKCS #10 certificate request, verifying the request's signature as it does so. |
| Modifier and Type | Method and Description |
|---|---|
| public void | encodeAndSign(X500Name
identifies the signer (by X.500 name). subject, PrivateKey private key to use. key, String signing algorithm to use. algorithm)Create the signed certificate request. |
| public boolean | Returns: true iff the encoded forms of the two certificate requests match, false otherwise.the object to test for equality with this object. obj)Overrides java. Compares this object for equality with the specified object. |
| public PKCS10Attributes | |
| public byte[] | Returns: the certificate request, or null if encodeAndSign() has not yet been called.Returns the encoded and signed certificate request as a DER-encoded byte array. |
| public String | |
| public X500Name | |
| public PublicKey | |
| public int | Returns: the hashcode value for this certificate request from its encoded formOverrides java. Returns the hashcode value for this certificate request from its encoded form. |
| public void | print(PrintStream
the print stream where the certificate request
will be printed. out)Prints an E-Mailable version of the certificate request on the print stream passed. |
| public String |
| attributeSet | back to summary |
|---|---|
| private final PKCS10Attributes attributeSet | |
| encoded | back to summary |
|---|---|
| private byte[] encoded | |
| sigAlg | back to summary |
|---|---|
| private String sigAlg | |
| subject | back to summary |
|---|---|
| private X500Name subject | |
| subjectPublicKeyInfo | back to summary |
|---|---|
| private final PublicKey subjectPublicKeyInfo | |
| PKCS10 | back to summary |
|---|---|
| public PKCS10(PublicKey publicKey) Constructs an unsigned PKCS #10 certificate request. Before this request may be used, it must be encoded and signed. Then it must be retrieved in some conventional format (e.g. string).
| |
| PKCS10 | back to summary |
|---|---|
| public PKCS10(PublicKey publicKey, PKCS10Attributes attributes) Constructs an unsigned PKCS #10 certificate request. Before this request may be used, it must be encoded and signed. Then it must be retrieved in some conventional format (e.g. string).
| |
| PKCS10 | back to summary |
|---|---|
| public PKCS10(byte[] data) throws IOException, SignatureException, NoSuchAlgorithmException Parses an encoded, signed PKCS #10 certificate request, verifying the request's signature as it does so. This constructor would typically be used by a Certificate Authority, from which a new certificate would then be constructed.
| |
| encodeAndSign | back to summary |
|---|---|
| public void encodeAndSign(X500Name subject, PrivateKey key, String algorithm) throws SignatureException, NoSuchAlgorithmException, InvalidKeyException Create the signed certificate request. This will later be retrieved in either string or binary format.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compares this object for equality with the specified
object. If the | |
| getAttributes | back to summary |
|---|---|
| public PKCS10Attributes getAttributes() Returns the additional attributes requested. | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Returns the encoded and signed certificate request as a DER-encoded byte array.
| |
| getSigAlg | back to summary |
|---|---|
| public String getSigAlg() Returns the signature algorithm. | |
| getSubjectName | back to summary |
|---|---|
| public X500Name getSubjectName() Returns the subject's name. | |
| getSubjectPublicKeyInfo | back to summary |
|---|---|
| public PublicKey getSubjectPublicKeyInfo() Returns the subject's public key. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hashcode value for this certificate request from its encoded form.
| |
| back to summary | |
|---|---|
| public void print(PrintStream out) throws IOException, SignatureException Prints an E-Mailable version of the certificate request on the print stream passed. The format is a common base64 encoded one, supported by most Certificate Authorities because Netscape web servers have used this for some time. Some certificate authorities expect some more information, in particular contact information for the web server administrator.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Provides a short description of this request. | |