class OpenSSLCertificateRequestImpl

This class is a subclass of CertificateRequestImpl and is a wrapper for the openssl X509_REQ structure.

Inheritance:


Public Methods

[more] OpenSSLCertificateRequestImpl (X509_REQ* request)
Constructs the object with specified type
[more] ~OpenSSLCertificateRequestImpl ()
Deletes the object
[more]DistinguishedName getSubject () const
Returns a DistinguishedName object which includes the DistinguishName of the Certificate to be requested
[more]PublicKey getPublicKey () const
Returns a PublicKey object which refers to an OpenSSLPrivateKey object containing the publicKey of the subject of the request.
[more]long getVersionNumber () const
Returns the versionNumber of this CertificateRequest
[more]string getSignatureAlgorithm () const
Returns the signatureAlgorithm such as "RSA-SHA1" or "DSA-MD5" that this CertificateRequest was signed by
[more]string getSignable () const
Returns the part of the certficateRequest that was signed.
[more]string getSignature () const
Returns the signature of this CertificateRequest
[more]bool verify () const
Returns true if the signature of the request verifies
[more]string paramString () const
Displays the CertificateRequest in string for debugging purposes
[more]static OpenSSLCertificateRequestImpl* init (const string& type, const string& encoding)
Creates and initializes an OpenSSLCertificateRequestImpl from a DER or PEM encoded string representation of a Request.
[more]string getEncoded (const string& type) const
Returns a DER or PEM encoded version of the CertificateRequest that can be sent to a CA for signing.


Inherited from CertificateRequestImpl:


Documentation

This class is a subclass of CertificateRequestImpl and is a wrapper for the openssl X509_REQ structure. A certficateRequest holds allthe information needed to create an X509 identity certificate. It can be sent to a CA who generates and signs the identity certficate. It provides get methods to extract specific fields from the X509_REQ, such as subject, publicKey, versionNumber, signatureAlgorithm and signature. The corresponding set methods are in the OpenSSLCertificateRequestGeneratorImpl class.

o OpenSSLCertificateRequestImpl(X509_REQ* request)
Constructs the object with specified type

o ~OpenSSLCertificateRequestImpl()
Deletes the object

oDistinguishedName getSubject() const
Returns a DistinguishedName object which includes the DistinguishName of the Certificate to be requested

oPublicKey getPublicKey() const
Returns a PublicKey object which refers to an OpenSSLPrivateKey object containing the publicKey of the subject of the request.

See Also:
KeyPair
getPublicKey()
KeyFactory
getKeyEncoded(const string&, const PublicKey&)
initPublicKey(const string&, const string&, const string&)
generateRSAKeyPair(int, unsigned long)
generateDSAKeyPair(int, const string&)

olong getVersionNumber() const
Returns the versionNumber of this CertificateRequest

ostring getSignatureAlgorithm() const
Returns the signatureAlgorithm such as "RSA-SHA1" or "DSA-MD5" that this CertificateRequest was signed by

ostring getSignable() const
Returns the part of the certficateRequest that was signed.

Throws:
SecurityException: getSignable:failed

ostring getSignature() const
Returns the signature of this CertificateRequest

obool verify() const
Returns true if the signature of the request verifies

ostring paramString() const
Displays the CertificateRequest in string for debugging purposes

ostatic OpenSSLCertificateRequestImpl* init(const string& type, const string& encoding)
Creates and initializes an OpenSSLCertificateRequestImpl from a DER or PEM encoded string representation of a Request.

Parameters:
string - type encoding used in string
encoding - the string representation of a certificateRequest.

ostring getEncoded(const string& type) const
Returns a DER or PEM encoded version of the CertificateRequest that can be sent to a CA for signing.

Throws:
Error: i2d_X509_REQ returned a failure - should not happen.
SecurityException - if type is not DER or PEM
Parameters:
string - type the type of encoding wanted: DER or PEM


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
CertificateRequest
CertificateRequestImpl

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.