namespace Akenti class AkentiX509CertificateImpl : public AkentiCertificateImpl

AkentiX509CertificateImpl is a subclass of AkentiCertificateImpl that wraps a DER encoded SSL X509 certifcate and provides the methods of the AkentiCertificateImpl

Inheritance:


Public Methods

virtual ~AkentiRevokedCertificateImpl ()
Destructor
virtual int getSerialNumber () const
The serial number has to be optional
virtual string getType () const
Returns the type of revokedCertificate
virtual string getUniqueID () const
Returns the uniqueID which is used to identify the specific the certificate of this revokedCertificate
virtual UtcTime getRevocationDate () const
Returns revocationDate in form of UtcTime of this revokedCertificate
virtual vector <AkentiExtension> getExtensions () const
Returns extensions in form of vector of this revokedCertificate
virtual void addExtension (const string& name, const string& value)
Adds extension specified by name and value to this revokedCertificate
virtual void setExtensions (const vector<AkentiExtension>& extensions)
Sets extension to this revokedCertificate specified by vector
AkentiX509CertificateImpl ()
Constructor
AkentiX509CertificateImpl (const Certificate& cert)
Copy constructor
AkentiX509CertificateImpl (const string& type, const string& encoding)
Constructor
~AkentiX509CertificateImpl ()
Destructor
AkentiX509CertificateImpl* newInstance () const
const AkentiPrincipal& getPrincipal () const
const PublicKey& getSubjectPublicKey () const
const URL& getRevocationURL () const
int getSerialNumber () const
string getSignable () const
string getHashString () const

Protected Methods

void writeObject (AkentiOutputStream& drain) const
Writes out a DER encoded version of the wrapped X509 certificate,
void readObject (AkentiInputStream& source)
Reads a DER encoded X509 certificate from the input stream and initializes the AkentiX509Certificate with the contents
void doParamString (ostream& os) const

Inherited from AkentiCertificateImpl:

Public Methods

string hashCode() const
bool hasType(const string& type) const
int getVersionNumber() const
const AkentiPrincipal& getGuarantor() const
const UtcTime& getNotBefore() const
const UtcTime& getNotAfter() const
bool verify(const PublicKey& publicKey) const
const string& getSignatureAlg() const
const string& getSignature() const
bool checkValidity(const UtcTime& utcTime) const
bool checkValidity() const
string paramString() const

Documentation

AkentiX509CertificateImpl is a subclass of AkentiCertificateImpl that wraps a DER encoded SSL X509 certifcate and provides the methods of the AkentiCertificateImpl. Several of the X509 fields have been extracted from the X509 certificate and stored in fields of the AkentiX509Certificate for easier reference.

The format for the AkentiX509Certificate is:

AkentiX509Certificate{ 
string           signable      opaque string containing the base64 encoded
                                   DER encoded identity certificate 
AkentiPrincipal  principal     subject and issuer (CA) of the X509 Cert
int              SerialNumber  extracted from X509
URL              revocationURL URL to where the CA keeps its revocation list
                                      extracted from X.509
PublicKey        subjectPublicKey;  extracted from X.509
Certificate      cert;         DER encoded  ASN1 X.509 certitical

The following AkentiCertificate members also contain information taken from the X50 certificate:

virtual ~AkentiRevokedCertificateImpl()
Destructor

virtual int getSerialNumber() const
The serial number has to be optional. It is most specific for X509 certificates stored in Akenti's cache. The other certificates need not support this.
Returns:
s int the serialNumber of revoked certificate

virtual string getType() const
Returns the type of revokedCertificate.
Returns:
s string the type of revoked certificate

virtual string getUniqueID() const
Returns the uniqueID which is used to identify the specific the certificate of this revokedCertificate.
Returns:
s string the uniqueID of revoked certificate

virtual UtcTime getRevocationDate() const
Returns revocationDate in form of UtcTime of this revokedCertificate.
Returns:
s UtcTime the revocationDate of revoked certificate
See Also:
UtcTime

virtual vector <AkentiExtension> getExtensions() const
Returns extensions in form of vector of this revokedCertificate.
Returns:
s vector the extension list of revoked certificate
See Also:
AkentiExtension

virtual void addExtension(const string& name, const string& value)
Adds extension specified by name and value to this revokedCertificate.
Parameters:
name - part of extension
value - part of extension

virtual void setExtensions(const vector<AkentiExtension>& extensions)
Sets extension to this revokedCertificate specified by vector.
Parameters:
extensions - the vector being set to this revokedCertificate
See Also:
AkentiExtension

AkentiX509CertificateImpl()
Constructor

AkentiX509CertificateImpl(const Certificate& cert)
Copy constructor. Makes a new certificate that is a copy of the old one.

AkentiX509CertificateImpl(const string& type, const string& encoding)
Constructor. Constructs a certificate from an input string.
Parameters:
type - the type of encoding used by the string. e.g. DER, or PEM
encoding - the content of the certificate..

~AkentiX509CertificateImpl()
Destructor

AkentiX509CertificateImpl* newInstance() const

const AkentiPrincipal& getPrincipal() const

const PublicKey& getSubjectPublicKey() const

const URL& getRevocationURL() const

int getSerialNumber() const

string getSignable() const

string getHashString() const

void writeObject(AkentiOutputStream& drain) const
Writes out a DER encoded version of the wrapped X509 certificate,

void readObject(AkentiInputStream& source)
Reads a DER encoded X509 certificate from the input stream and initializes the AkentiX509Certificate with the contents

void doParamString(ostream& os) const


This class has no child classes.

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