namespace Akenti class CertificateAuthorityInfo : public AkentiObject

A CertificateAuthorityInfo holds ca's chain of x509 certs

Inheritance:


Public Methods

CertificateAuthorityInfo ()
Default constructor
CertificateAuthorityInfo (const Certificate& cert, const vector<Directory>& idDirs = vector<Directory>(), const vector<Directory>& crlDirs = vector<Directory>())
Constructs this object given a ca's certificate specified by cert
CertificateAuthorityInfo (const vector<Certificate>& certs, const vector<Directory>& idDirs = vector<Directory>(), const vector<Directory>& crlDirs = vector<Directory>())
Constructs this object given a ca's chain of certificates specified by certs
~CertificateAuthorityInfo ()
Deletes this object
const DistinguishedName& getCa () const
Returns the distinguished name represented by this CertificateAuthorityInfo object
const vector <Certificate> & getChain () const
Returns the ca's x509 cert chain
const vector <Directory> & getIdentityDirectories () const
Returns the ca's identity directories
const vector <Directory> & getCrlDirectories () const
Returns the ca's CRL directories
void writeObject (AkentiOutputStream& drain) const
Writes this object to the AkentiOutputStream
void readObject (AkentiInputStream& source)
Reads this object from the AkentiInputStream
void toXML (DOMElement* caInfo) const
Populates the XML element caInfo from this CertificateAuthorityInfo
void fromXML (const DOMElement* caInfo)
Initializes this CertificateAuthorityInfo from the XML element caInfo
string paramString () const
Used for debugging

Inherited from AkentiObject:


Documentation

A CertificateAuthorityInfo holds ca's chain of x509 certs. This chain can consist solely of the ca's cert. In addition, although not required, directories where to search for identity certs and crls issued by the ca can be supplied. CertificateAuthorityInfo {
DistingushedName ca;
vector<Certificate> certs;
vector<Directory> idDirs;
vector<Directory> crlDirs;
}
The format of writeObject is following :
ca certCount cert+ idDirCount idDir* crlDirCount crlDir*
Where cert is the pem encoding of an x509 certificate, + means one or more * means 0 or more
CertificateAuthorityInfo()
Default constructor

CertificateAuthorityInfo(const Certificate& cert, const vector<Directory>& idDirs = vector<Directory>(), const vector<Directory>& crlDirs = vector<Directory>())
Constructs this object given a ca's certificate specified by cert.
Parameters:
cert - Certificate the ca's certificate
idDirs - vector where to search for x509 certs
crlDirs - vector where to search for crls
See Also:
DistinguishedName
Certificate

CertificateAuthorityInfo(const vector<Certificate>& certs, const vector<Directory>& idDirs = vector<Directory>(), const vector<Directory>& crlDirs = vector<Directory>())
Constructs this object given a ca's chain of certificates specified by certs. Note that the last cert in the chain is considered to belong to the ca.
Parameters:
certs - vector a ca's chain of x509 certs
idDirs - vector where to search for x509 certs
crlDirs - vector where to search for crls

~CertificateAuthorityInfo()
Deletes this object

const DistinguishedName& getCa() const
Returns the distinguished name represented by this CertificateAuthorityInfo object.
Returns:
the distinguished name of the ca
See Also:
DistinguishedName

const vector <Certificate> & getChain() const
Returns the ca's x509 cert chain.
See Also:
Certificate

const vector <Directory> & getIdentityDirectories() const
Returns the ca's identity directories.
See Also:
Directory

const vector <Directory> & getCrlDirectories() const
Returns the ca's CRL directories.
See Also:
Directory

void writeObject(AkentiOutputStream& drain) const
Writes this object to the AkentiOutputStream
Throws:
IOException if writing fails
SecurityException if encoding of certificate fails
Error if no security provider is installed
Parameters:
drain - AkentiOutputStream used to write this object
See Also:
AkentiOutputStream
SecurityException
IOException
Error

void readObject(AkentiInputStream& source)
Reads this object from the AkentiInputStream.
Throws:
IOException if reading from AkentiInputStream fails
SecurityException if decoding of the certificate fails
Error if no security provider is installed
Parameters:
source - AkentiInputStream used to read this object
See Also:
AkentiInputStream
SecurityException
IOException
Error

void toXML(DOMElement* caInfo) const
Populates the XML element caInfo from this CertificateAuthorityInfo

void fromXML(const DOMElement* caInfo)
Initializes this CertificateAuthorityInfo from the XML element caInfo

string paramString() const
Used for debugging.
Returns:
a string representation of this object
See Also:
AkentiObject


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari Xiang Sun
Version:
1.1 00/05/01
See Also:
AkentiObject
Certificate
Directory

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