QCA::CRLEntry

Search for usage in LXR

#include <QtCrypto>

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)
 
bool isNull () const
 
bool operator!= (const CRLEntry &other) const
 
bool operator< (const CRLEntry &a) const
 
CRLEntryoperator= (const CRLEntry &from)
 
bool operator== (const CRLEntry &a) const
 
Reason reason () const
 
BigInteger serialNumber () const
 
QDateTime time () const
 

Detailed Description

Part of a CRL representing a single certificate.

Definition at line 1600 of file qca_cert.h.

Member Enumeration Documentation

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

Definition at line 1606 of file qca_cert.h.

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
cthe certificate to revoke
rthe reason that the certificate is being revoked
QCA::CRLEntry::CRLEntry ( const BigInteger  serial,
const QDateTime time,
Reason  r = Unspecified 
)

create a CRL entry

Parameters
serialthe serial number of the Certificate being revoked
timethe time the Certificate was revoked (or will be revoked)
rthe reason that the certificate is being revoked
QCA::CRLEntry::CRLEntry ( const CRLEntry from)

Copy constructor.

Parameters
fromthe CRLEntry to copy from

Member Function Documentation

bool QCA::CRLEntry::isNull ( ) const

Test if this CRL entry is empty.

bool QCA::CRLEntry::operator!= ( const CRLEntry other) const
inline

Inequality operator.

Parameters
otherthe CRL entry to be compared to this CRL entry.

Definition at line 1705 of file qca_cert.h.

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

Parameters
athe CRL entry to be compared to this CRL entry.
CRLEntry& QCA::CRLEntry::operator= ( const CRLEntry from)

Standard assignment operator.

Parameters
fromthe CRLEntry to copy from
bool QCA::CRLEntry::operator== ( const CRLEntry a) const

Test for equality of two CRL Entries.

Parameters
athe CRL entry to be compared to this CRL entry.
Returns
true if the two certificates are the same
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

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.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun May 16 2021 23:04:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.