namespace Akenti class OpenSSLX509CertificateImpl : public CertificateImpl

This class is the subclass of CertificateImpl and it provides all the services the opensll X509 certificate supports

Inheritance:


Public Methods

static string base64Encode (const string& data)
Provides Base64 encoded data given the string
static string base64Decode (const string& encoding)
Provides Base64 encoded data given the string
static void populateX509Name (X509_NAME *name, const Principal& principal)
Populates the X509 name with the given principal
static void populateX509Name (X509_NAME *name, const DistinguishedName& dn)
Populates the X509 name with the given distinguished name
OpenSSLX509CertificateImpl (X509 *x509)
Constructs this object takes X509 as type
~OpenSSLX509CertificateImpl ()
Deletes this object
string getType () const
Returns the type X509 of this certificate
PublicKey getSubjectPublicKey () const
Returns publicKey of this certificate
long getVersionNumber () const
Returns the versionNumber of this certificate
UtcTime getNotBefore () const
Returns the earliest time that the certificate is valid
UtcTime getNotAfter () const
Returns the latest time that the certificate is valid
long getSerialNumber () const
Returns the serialNumber of this certificate, which together with the issuing CA's name, uniquely identifies this certificate
string getSignature () const
Returns the signature of this certificate
string getSignatureAlgorithm () const
Returns signatureAlgorithm of this certificate
string getFormat () const
Returns format of this certificate
Principal getGuarantor () const
Returns CA that signed this certificate
Principal getPrincipal () const
Returns subject of this certificate
string getRevocationURL () const
Returns RevocationURL for the CA that issued this certificate
bool verify (const PublicKey& publicKey) const
Returns the PublicKey stored in this certificate
string paramString () const
Returns a string represenation of this certificate
int hashCode () const
Returns a hashCode for the certificate that conists of the sum of all the bytes multiplied by their position
string getSignable () const
Returns the part of this certificate that is signed
string getEncoded () const
Returns the DER encoding for this certificate
string getEncoded (const string& type) const
Returns either the DER or PEM encoding of the certificate depending on the value of type

Documentation

This class is the subclass of CertificateImpl and it provides all the services the opensll X509 certificate supports. This class contains a openssl X509 structure and basically acts as a wrapper to functions that act on that structure. Within the Akenti code these certificates (actually a ref_ptr to the certificateImpl) is kept in an AkentiX509CertificateImpl which is a subclass of AkentiCertificateImpl and supports all the methods of the superclass. Thus Akenti code normally refers to the AkentiX509Certificate rather than this class. Methods in this class are called by the AkentiX509CertificateImpl. As this class is part of the shared library, it may be used directly by code other than Akenti.
static string base64Encode(const string& data)
Provides Base64 encoded data given the string.
Returns:
Base64 encoded string
Parameters:
data - the string to encode

static string base64Decode(const string& encoding)
Provides Base64 encoded data given the string.
Returns:
Base64 decoded string
Parameters:
encoding - the string to decode

static void populateX509Name(X509_NAME *name, const Principal& principal)
Populates the X509 name with the given principal.
Parameters:
name - the X509 name
principal - used for populating the X509 name

static void populateX509Name(X509_NAME *name, const DistinguishedName& dn)
Populates the X509 name with the given distinguished name.
Parameters:
name - the X509 name
dn - the distinguished name used for populating the X509 name

OpenSSLX509CertificateImpl(X509 *x509)
Constructs this object takes X509 as type

~OpenSSLX509CertificateImpl()
Deletes this object

string getType() const
Returns the type X509 of this certificate.
See Also:
param x509

PublicKey getSubjectPublicKey() const
Returns publicKey of this certificate

long getVersionNumber() const
Returns the versionNumber of this certificate

UtcTime getNotBefore() const
Returns the earliest time that the certificate is valid

UtcTime getNotAfter() const
Returns the latest time that the certificate is valid

long getSerialNumber() const
Returns the serialNumber of this certificate, which together with the issuing CA's name, uniquely identifies this certificate

string getSignature() const
Returns the signature of this certificate

string getSignatureAlgorithm() const
Returns signatureAlgorithm of this certificate

string getFormat() const
Returns format of this certificate

Principal getGuarantor() const
Returns CA that signed this certificate

Principal getPrincipal() const
Returns subject of this certificate

string getRevocationURL() const
Returns RevocationURL for the CA that issued this certificate

bool verify(const PublicKey& publicKey) const
Returns the PublicKey stored in this certificate

string paramString() const
Returns a string represenation of this certificate

int hashCode() const
Returns a hashCode for the certificate that conists of the sum of all the bytes multiplied by their position

string getSignable() const
Returns the part of this certificate that is signed

string getEncoded() const
Returns the DER encoding for this certificate

string getEncoded(const string& type) const
Returns either the DER or PEM encoding of the certificate depending on the value of type


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
CertificateImpl
PublicKey
UtcTime
Principal

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