namespace Akenti class OpenSSLCertificateRequestImpl : public CertificateRequestImpl

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

Inheritance:


Public Methods

OpenSSLCertificateRequestImpl (X509_REQ *request)
Constructs the object with specified type
~OpenSSLCertificateRequestImpl ()
Deletes the object
Principal getSubject () const
Returns a Principal object which includes the DistinguishName of the Certificate to be requested
PublicKey getPublicKey () const
Returns a PublicKey object which refers to an OpenSSLPrivateKey object containing the publicKey of the subject of the request
long getVersionNumber () const
Returns the versionNumber of this CertificateRequest
string getSignatureAlgorithm () const
Returns the signatureAlgorithm such as "RSA-SHA1" or "DSA-MD5" that this CertificateRequest was signed by
string getSignable () const
Returns the part of the certficateRequest that was signed
string getSignature () const
Returns the signature of this CertificateRequest
bool verify () const
Returns true if the signature of the request verifies
string paramString () const
Displays the CertificateRequest in string for debugging purposes
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
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

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.
OpenSSLCertificateRequestImpl(X509_REQ *request)
Constructs the object with specified type

~OpenSSLCertificateRequestImpl()
Deletes the object

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

PublicKey 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&)

long getVersionNumber() const
Returns the versionNumber of this CertificateRequest

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

string getSignable() const
Returns the part of the certficateRequest that was signed.
Throws:
SecurityException : getSignable:failed

string getSignature() const
Returns the signature of this CertificateRequest

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

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

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.
Parameters:
string - type encoding used in string
encoding - the string representation of a certificateRequest.

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.
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 hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de