class CertificateAuthorityInfo

A CertificateAuthorityInfo holds ca's chain of x509 certs.

Inheritance:


Public Methods

[more] CertificateAuthorityInfo ()
Default constructor
[more] 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.
[more] 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.
[more] ~CertificateAuthorityInfo ()
Deletes this object
[more]const DistinguishedName& getCa () const
Returns the distinguished name represented by this CertificateAuthorityInfo object.
[more]const vector<Certificate> & getChain () const
Returns the ca's x509 cert chain.
[more]const vector<Directory> & getIdentityDirectories () const
Returns the ca's identity directories.
[more]const vector<Directory> & getCrlDirectories () const
Returns the ca's CRL directories.
[more]void writeObject (AkentiOutputStream& drain) const
Writes this object to the AkentiOutputStream
[more]void readObject (AkentiInputStream& source)
Reads this object from the AkentiInputStream.
[more]void toXML (DOMElement* caInfo) const
Populates the XML element caInfo from this CertificateAuthorityInfo
[more]void fromXML (const DOMElement* caInfo)
Initializes this CertificateAuthorityInfo from the XML element caInfo
[more]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

o CertificateAuthorityInfo()
Default constructor

o 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<Directory> where to search for x509 certs
crlDirs - vector<Directory> where to search for crls
See Also:
DistinguishedName
Certificate

o 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<Directory> where to search for x509 certs
crlDirs - vector<Directory> where to search for crls

o ~CertificateAuthorityInfo()
Deletes this object

oconst DistinguishedName& getCa() const
Returns the distinguished name represented by this CertificateAuthorityInfo object.

Returns:
the distinguished name of the ca
See Also:
DistinguishedName

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

See Also:
Certificate

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

See Also:
Directory

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

See Also:
Directory

ovoid 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

ovoid 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

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

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

ostring 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 HTML hierarchy of classes or Java



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