QCA::CRL Class Reference
[QCA user API]
Certificate Revocation List
More...
#include <QtCrypto>
List of all members.
Detailed Description
Certificate Revocation List
A CRL is a list of certificates that are special in some way. The normal reason for including a certificate on a CRL is that the certificate should no longer be used. For example, if a key is compromised, then the associated certificate may no longer provides appropriate security. There are other reasons why a certificate may be placed on a CRL, as shown in the CRLEntry::Reason enumeration.
- See also:
- CertificateCollection for a way to handle Certificates and CRLs as a single entity.
-
CRLEntry for the CRL segment representing a single Certificate.
Constructor & Destructor Documentation
QCA::CRL::CRL |
( |
const CRL & |
from |
) |
|
Standard copy constructor.
- Parameters:
-
| from | the revocation list to copy from |
Member Function Documentation
CRL& QCA::CRL::operator= |
( |
const CRL & |
from |
) |
|
Standard assignment operator.
- Parameters:
-
| from | the revocation list to assign from |
bool QCA::CRL::isNull |
( |
|
) |
const |
Test if the CRL is empty.
- Returns:
- true if the CRL is entry, otherwise return false
Information on the issuer of the CRL as a QMultiMap.
- See also:
- issuerInfoOrdered for a version that maintains the order of information fields as per the underlying CRL.
int QCA::CRL::number |
( |
|
) |
const |
The CRL serial number.
Note that serial numbers are a CRL extension, and not all certificates have one.
- Returns:
- the CRL serial number, or -1 if there is no serial number
the time that this CRL became (or becomes) valid
the time that this CRL will be obsoleted
you should obtain an updated CRL at this time
a list of the revoked certificates in this CRL
The signature algorithm used for the signature on this CRL.
The key identification of the CRL issuer.
bool QCA::CRL::operator== |
( |
const CRL & |
a |
) |
const |
Test for equality of two Certificate Revocation Lists.
- Parameters:
-
| a | the CRL to be compared to this CRL |
- Returns:
- true if the two CRLs are the same
bool QCA::CRL::operator!= |
( |
const CRL & |
other |
) |
const [inline] |
Inequality operator.
- Parameters:
-
| other | the CRL to be compared to this CRL |
Export the Certificate Revocation List (CRL) in DER format.
- Returns:
- an array containing the CRL in DER format
Export the Certificate Revocation List (CRL) in PEM format.
- Returns:
- a string containing the CRL in PEM format
bool QCA::CRL::toPEMFile |
( |
const QString & |
fileName |
) |
const |
Export the Certificate Revocation List (CRL) into PEM format in a file.
- Parameters:
-
| fileName | the name of the file to use |
Import a DER encoded Certificate Revocation List (CRL).
- Parameters:
-
| a | the array containing the CRL in DER format |
| result | a pointer to a ConvertResult, which if not-null will be set to the conversion status |
| provider | the provider to use, if a specific provider is required |
- Returns:
- the CRL corresponding to the contents of the array
Import a PEM encoded Certificate Revocation List (CRL).
- Parameters:
-
| s | the string containing the CRL in PEM format |
| result | a pointer to a ConvertResult, which if not-null will be set to the conversion status |
| provider | the provider to use, if a specific provider is required |
- Returns:
- the CRL corresponding to the contents of the string
Import a PEM encoded Certificate Revocation List (CRL) from a file.
- Parameters:
-
| fileName | the name (and path, if required) of the file containing the certificate in PEM format |
| result | a pointer to a ConvertResult, which if not-null will be set to the conversion status |
| provider | the provider to use, if a specific provider is required |
- Returns:
- the CRL in the file
For internal use only.
- Parameters:
-
The documentation for this class was generated from the following file: