#include <uapkirevocationlist.h>
List of all members.
Detailed Description
Class for handling revocation lists. The following sample demonstrates how to create a revocation list.
UaPkiIdentity issuer;
issuer.commonName = "Example Company";
issuer.organization = "ACME";
issuer.organizationUnit = "Development Department";
issuer.locality = "Zell am See";
issuer.state = "Salzburg";
issuer.country = "AT";
int bits = 2048;
UaPkiRsaKeyPair keyPairIssuer(bits);
UaPkiRevocationList revocationList(3600*24*365*5, issuer, 0);
UaPkiCertificate certToRevoke = UaPkiCertificate::fromDERFile("/path/to/certToRevoke.der");
revocationList.addRevoked(certToRevoke, UaDateTime::now());
revocationList.sign(keyPairIssuer.privateKey());
revocationList.toPEMFile("/path/to/myrevocationlist.crl");
Constructor & Destructor Documentation
UaPkiRevocationList::UaPkiRevocationList |
( |
long |
validity, |
|
|
const UaPkiIdentity & |
issuer, |
|
|
long |
iCrlNumber |
|
) |
| |
Constructor
- Parameters:
-
[in] | validity | Time from now in seconds until a new CRL will be created. |
[in] | issuer | The issuer of the Certificate. |
[in] | iCrlNumber | The CrlNumber of the certificate |
UaPkiRevocationList::~UaPkiRevocationList |
( |
) |
|
Member Function Documentation
Adds a certificate to the revocation list.
- Parameters:
-
[in] | cert | The certificate to be added. |
[in] | revocationDate | The certificate will be revoked from this date on. |
long UaPkiRevocationList::crlNumber |
( |
) |
const |
Returns the number of the revocation list.
Loads a revocation list from a DER encoded byte array.
- Returns:
- A new UaPkiRevocationList instance.
- Parameters:
-
Loads a certificate from a CRL or PEM encoded file.
- Returns:
- A new UaPkiRevocationList instance.
- Parameters:
-
[in] | szFile | The file name (local 8 bit encoding). |
Returns the identity of the revocation list's issuer.
ToDoDoc
- Parameters:
-
- Returns:
- ToDoDoc
Compares the issuer name of the CRL to another one.
- Parameters:
-
other | [in] The other CRL to compare to. |
- Returns:
- True if the issuer names are equal, false if not.
bool UaPkiRevocationList::sign |
( |
const UaPkiPrivateKey & |
issuerPrivateKey ) |
|
Signs the revocation list.
- Returns:
- True if signing was successful, false otherwise.
- Parameters:
-
[in] | issuerPrivateKey | The private key of the issuer to sign the list with. |
Encodes the revocation list into DER format.
- Returns:
- UaByteArray with DER data.
int UaPkiRevocationList::toDERFile |
( |
const char * |
szFile ) |
const |
< [in] The filename to use.
Stores the revocation list into a DER encoded file.
- Returns:
- 1 on success, 0 otherwise.
int UaPkiRevocationList::toPEMFile |
( |
const char * |
szFile ) |
const |
< [in] The filename to use.
Stores the revocation list into a PEM encoded file.
- Returns:
- 1 on success, 0 otherwise.
bool UaPkiRevocationList::verify |
( |
const UaPkiPrivateKey & |
issuerPrivateKey ) |
const |
< [in] The issuer's private key to verify with.
Verifies the signature of the revocation list.
- Returns:
- True if the list is valid, false otherwise.
The documentation for this class was generated from the following files:
- /home/buildbot/work/uasdkcpp/src/uabase/uapkicpp/uapkirevocationlist.h
- /home/buildbot/work/uasdkcpp/src/uabase/uapkicpp/uapkirevocationlist.cpp