namespace Akenti class CertificateAuthorityInfo : public AkentiObject

A CertificateAuthorityInfo holds the distingushed name of a ca and its x509-identity certificate

Inheritance:


Public Methods

CertificateAuthorityInfo ()
Default constructor
CertificateAuthorityInfo (const string& ca, const string& cert)
Constructs this object given the string representation of the distinguished name of a ca specified by ca and the pem encoding of the ca's certificate specified by cert
CertificateAuthorityInfo (const DistinguishedName& ca, const Certificate& cert)
Constructs this object given the distinguished name of a ca specified by ca and the ca's certificate specified by cert
CertificateAuthorityInfo (const string& ca, const string& cert, const string& crlDirectory)
Constructs this object given the string representation of the distinguished name of a ca specified by ca and the pem encoding of the ca's certificate specified by cert, the string representation of the Certificate Revocation List specified by crl
CertificateAuthorityInfo (const DistinguishedName& ca, const Certificate& cert, const Directory& crlDirectory)
Constructs this object given the distinguished name of a ca specified by ca, the ca's certificate specified by cert, the Directory representing the Certificate Revocation List of the CA specified by crl
~CertificateAuthorityInfo ()
Deletes this object
bool operator== (const CertificateAuthorityInfo& cai) const
Return true if this object is equal to the the CertificateAuthorityInfo object specified by cai
const DistinguishedName& getCA () const
Returns the distinguished name represented by this CertificateAuthorityInfo object
const Certificate& getCertificate () const
Returns the certificate of the ca represented by this CertificateAuthorityInfo object
const vector & getCRLDirectories () const
Returns the CRL of the ca represented by this CertificateAuthorityInfo object
void writeObject (AkentiOutputStream& drain) const
Writes this object to the AkentiOutputStream object specified by drain
void readObject (AkentiInputStream& source)
Reads this object from the AkentiInputStream object specified by source
string paramString () const
Used for debugging

Documentation

A CertificateAuthorityInfo holds the distingushed name of a ca and its x509-identity certificate. CertificateAuthorityInfo {
DistinguishedName ca;
Certificate cert;
vector<Directory> crlDirectory;
}
The format of writeObject is following :
ca cert dirCount crlDirectory+
Where cert is the pem encoding of the ca's certificate, and crlDirectory+ are one or more Directories that contain the Certificate Revocation List of the CA.
CertificateAuthorityInfo()
Default constructor

CertificateAuthorityInfo(const string& ca, const string& cert)
Constructs this object given the string representation of the distinguished name of a ca specified by ca and the pem encoding of the ca's certificate specified by cert.
Throws:
ParsingException if unable to parse the dn
Error if either argument is an empty string
Error if no security provider is installed
SecurityException if encoding is invalid
Parameters:
ca - string the distinguished name of a ca
cert - string pem encoding of the ca's certificate
See Also:
DistinguishedName
ParsingException @sse Error
SecurityException

CertificateAuthorityInfo(const DistinguishedName& ca, const Certificate& cert)
Constructs this object given the distinguished name of a ca specified by ca and the ca's certificate specified by cert.
Throws:
Error if cert is not initialized
Parameters:
ca - DistinguishedName of a ca
cert - Certificate the ca's certificate
See Also:
DistinguishedName
Certificate
Error

CertificateAuthorityInfo(const string& ca, const string& cert, const string& crlDirectory)
Constructs this object given the string representation of the distinguished name of a ca specified by ca and the pem encoding of the ca's certificate specified by cert, the string representation of the Certificate Revocation List specified by crl.
Throws:
ParsingException if unable to parse the dn
MalformedDirectoryException if the url is invalid
Error if any of the arguments is an empty string
Error if no security provider is installed
SecurityException if encoding is invalid
Parameters:
ca - string the distinguished name of a ca
cert - string pem encoding of the ca's certificate
crlDirectory - string pointer to the ca's CRLs
See Also:
DistinguishedName
ParsingException @sse Error
SecurityException
MalformedDirectoryException

CertificateAuthorityInfo(const DistinguishedName& ca, const Certificate& cert, const Directory& crlDirectory)
Constructs this object given the distinguished name of a ca specified by ca, the ca's certificate specified by cert, the Directory representing the Certificate Revocation List of the CA specified by crl.
Throws:
Error if cert is not initialized
MalformedDirectoryException if the url is invalid
Parameters:
ca - DistinguishedName of a ca
cert - Certificate the ca's certificate
crl - Certificate Revocation List of the CA
See Also:
DistinguishedName
Certificate
Directory
MalformedDirectoryException
Error

~CertificateAuthorityInfo()
Deletes this object

bool operator==(const CertificateAuthorityInfo& cai) const
Return true if this object is equal to the the CertificateAuthorityInfo object specified by cai.
Returns:
true if equal false otherwise

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

const Certificate& getCertificate() const
Returns the certificate of the ca represented by this CertificateAuthorityInfo object.
Returns:
the identity certificate of the ca
See Also:
Certificate&

const vector & getCRLDirectories() const
Returns the CRL of the ca represented by this CertificateAuthorityInfo object.
Returns:
the CRL of the ca
See Also:
Directory

void writeObject(AkentiOutputStream& drain) const
Writes this object to the AkentiOutputStream object specified by drain.
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
IOException
SecurityException
Error

void readObject(AkentiInputStream& source)
Reads this object from the AkentiInputStream object specified by source.
Throws:
IOException if reading from AkentiInputStream fails
ParsingException if the parsing of the distinguished name 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
IOException
ParsingException
SecurityException
Error

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
DistinguishedName
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