java.lang.Object | |
↳ | sun.security.pkcs.PKCS10 |
A PKCS #10 certificate request is created and sent to a Certificate Authority, which then creates an X.509 certificate and returns it to the entity that requested it. A certificate request basically consists of the subject's X.500 name, public key, and optionally some attributes, signed using the corresponding private key. The ASN.1 syntax for a Certification Request is:
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
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an unsigned PKCS #10 certificate request.
| |||||||||||
Constructs an unsigned PKCS #10 certificate request.
| |||||||||||
Parses an encoded, signed PKCS #10 certificate request, verifying
the request's signature as it does so.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create the signed certificate request.
| |||||||||||
Compares this object for equality with the specified
object.
| |||||||||||
Returns the additional attributes requested.
| |||||||||||
Returns the encoded and signed certificate request as a
DER-encoded byte array.
| |||||||||||
Returns the subject's name.
| |||||||||||
Returns the subject's public key.
| |||||||||||
Returns a hashcode value for this certificate request from its
encoded form.
| |||||||||||
Prints an E-Mailable version of the certificate request on the print
stream passed.
| |||||||||||
Provides a short description of this request.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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).
publicKey | the public key that should be placed into the certificate generated by the CA. |
---|
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).
publicKey | the public key that should be placed into the certificate generated by the CA. |
---|---|
attributes | additonal set of PKCS10 attributes requested for in the certificate. |
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.
data | the DER-encoded PKCS #10 request. |
---|
IOException | for low level errors reading the data |
---|---|
SignatureException | when the signature is invalid |
NoSuchAlgorithmException | when the signature algorithm is not supported in this environment |
Create the signed certificate request. This will later be retrieved in either string or binary format.
requester | identifies the signer (by X.500 name) and provides the private key used to sign. |
---|
IOException | on errors. |
---|---|
CertificateException | on certificate handling errors. |
SignatureException | on signature handling errors. |
Compares this object for equality with the specified
object. If the other
object is an
instanceof
PKCS10
, then
its encoded form is retrieved and compared with the
encoded form of this certificate request.
other | the object to test for equality with this object. |
---|
Returns the encoded and signed certificate request as a DER-encoded byte array.
Returns a hashcode value for this certificate request from its encoded form.
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.
out | the print stream where the certificate request will be printed. |
---|
IOException | when an output operation failed |
---|---|
SignatureException | when the certificate request was not yet signed. |
Provides a short description of this request.