QCA::CRLEntry Class Reference

Part of a CRL representing a single certificate. More...

#include <QtCrypto>

Collaboration diagram for QCA::CRLEntry:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Reason {
  Unspecified, KeyCompromise, CACompromise, AffiliationChanged,
  Superseded, CessationOfOperation, CertificateHold, RemoveFromCRL,
  PrivilegeWithdrawn, AACompromise
}

Public Member Functions

 CRLEntry ()
 CRLEntry (const Certificate &c, Reason r=Unspecified)
 CRLEntry (const BigInteger serial, const QDateTime &time, Reason r=Unspecified)
 CRLEntry (const CRLEntry &from)
CRLEntryoperator= (const CRLEntry &from)
BigInteger serialNumber () const
QDateTime time () const
bool isNull () const
Reason reason () const
bool operator< (const CRLEntry &a) const
bool operator== (const CRLEntry &a) const
bool operator!= (const CRLEntry &other) const

Detailed Description

Part of a CRL representing a single certificate.


Member Enumeration Documentation

enum QCA::CRLEntry::Reason
 

The reason why the certificate has been revoked.

Enumerator:
Unspecified  reason is unknown
KeyCompromise  private key has been compromised
CACompromise  certificate authority has been compromised
Superseded  certificate has been superseded
CertificateHold  certificate is on hold
RemoveFromCRL  certificate was previously in a CRL, but is now valid
AACompromise  attribute authority has been compromised


Constructor & Destructor Documentation

QCA::CRLEntry::CRLEntry  ) 
 

create an empty CRL entry

QCA::CRLEntry::CRLEntry const Certificate c,
Reason  r = Unspecified
[explicit]
 

create a CRL entry

Parameters:
c the certificate to revoke
r the reason that the certificate is being revoked

QCA::CRLEntry::CRLEntry const BigInteger  serial,
const QDateTime time,
Reason  r = Unspecified
 

create a CRL entry

Parameters:
serial the serial number of the Certificate being revoked
time the time the Certificate was revoked (or will be revoked)
r the reason that the certificate is being revoked

QCA::CRLEntry::CRLEntry const CRLEntry from  ) 
 

Copy constructor.

Parameters:
from the CRLEntry to copy from


Member Function Documentation

CRLEntry& QCA::CRLEntry::operator= const CRLEntry from  ) 
 

Standard assignment operator.

Parameters:
from the CRLEntry to copy from

BigInteger QCA::CRLEntry::serialNumber  )  const
 

The serial number of the certificate that is the subject of this CRL entry.

QDateTime QCA::CRLEntry::time  )  const
 

The time this CRL entry was created.

bool QCA::CRLEntry::isNull  )  const
 

Test if this CRL entry is empty.

Reason QCA::CRLEntry::reason  )  const
 

The reason that this CRL entry was created.

Alternatively, you might like to think of this as the reason that the subject certificate has been revoked

bool QCA::CRLEntry::operator< const CRLEntry a  )  const
 

Test if one CRL entry is "less than" another.

CRL entries are compared based on their serial number

bool QCA::CRLEntry::operator== const CRLEntry a  )  const
 

Test for equality of two CRL Entries.

Returns:
true if the two certificates are the same

bool QCA::CRLEntry::operator!= const CRLEntry other  )  const [inline]
 

Inequality operator.


The documentation for this class was generated from the following file:
Generated on Fri Jul 6 12:14:54 2007 for Qt Cryptographic Architecture by  doxygen 1.4.6