#include <QtCrypto>
Certificate options
- Note
- In SPKAC mode, all options are ignored except for challenge
§ CertificateOptions() [1/2]
Create a Certificate options set.
- Parameters
-
format | the format to create the certificate request in |
§ CertificateOptions() [2/2]
Standard copy constructor.
- Parameters
-
§ operator=()
Standard assignment operator.
- Parameters
-
§ format()
test the format type for this certificate
§ setFormat()
Specify the format for this certificate.
- Parameters
-
§ isValid()
bool QCA::CertificateOptions::isValid |
( |
| ) |
const |
Test if the certificate options object is valid.
- Returns
- true if the certificate options object is valid
§ challenge()
QString QCA::CertificateOptions::challenge |
( |
| ) |
const |
§ info()
Information on the subject of the certificate.
- See also
- setInfo
§ infoOrdered()
Information on the subject of the certificate, in the exact order the items will be written.
- See also
- setInfoOrdered
§ constraints()
Constraints QCA::CertificateOptions::constraints |
( |
| ) |
const |
List the constraints on this certificate.
§ policies()
QStringList QCA::CertificateOptions::policies |
( |
| ) |
const |
list the policies on this certificate
§ crlLocations()
QStringList QCA::CertificateOptions::crlLocations |
( |
| ) |
const |
list of URI locations for CRL files
each URI refers to the same CRL file
For Certificate creation only
§ issuerLocations()
QStringList QCA::CertificateOptions::issuerLocations |
( |
| ) |
const |
list of URI locations for issuer certificate files
each URI refers to the same issuer file
For Certificate creation only
§ ocspLocations()
QStringList QCA::CertificateOptions::ocspLocations |
( |
| ) |
const |
list of URI locations for OCSP services
For Certificate creation only
§ isCA()
bool QCA::CertificateOptions::isCA |
( |
| ) |
const |
§ pathLimit()
int QCA::CertificateOptions::pathLimit |
( |
| ) |
const |
return the path limit on this certificate
§ serialNumber()
BigInteger QCA::CertificateOptions::serialNumber |
( |
| ) |
const |
The serial number for the certificate.
For Certificate creation only
§ notValidBefore()
QDateTime QCA::CertificateOptions::notValidBefore |
( |
| ) |
const |
the first time the certificate will be valid
For Certificate creation only
§ notValidAfter()
QDateTime QCA::CertificateOptions::notValidAfter |
( |
| ) |
const |
the last time the certificate is valid
For Certificate creation only
§ setChallenge()
void QCA::CertificateOptions::setChallenge |
( |
const QString & |
s | ) |
|
Specify the challenge associated with this certificate.
- Parameters
-
- See also
- challenge()
§ setInfo()
Specify information for the the subject associated with the certificate.
- Parameters
-
info | the information for the subject |
- See also
- info()
§ setInfoOrdered()
Specify information for the the subject associated with the certificate.
- Parameters
-
info | the information for the subject |
- See also
- info()
§ setConstraints()
void QCA::CertificateOptions::setConstraints |
( |
const Constraints & |
constraints | ) |
|
set the constraints on the certificate
- Parameters
-
constraints | the constraints to be used for the certificate |
§ setPolicies()
void QCA::CertificateOptions::setPolicies |
( |
const QStringList & |
policies | ) |
|
set the policies on the certificate
- Parameters
-
policies | the policies to be used for the certificate |
§ setCRLLocations()
void QCA::CertificateOptions::setCRLLocations |
( |
const QStringList & |
locations | ) |
|
set the CRL locations of the certificate
each location refers to the same CRL.
- Parameters
-
locations | a list of URIs to CRL files |
§ setIssuerLocations()
void QCA::CertificateOptions::setIssuerLocations |
( |
const QStringList & |
locations | ) |
|
set the issuer certificate locations of the certificate
each location refers to the same issuer file.
- Parameters
-
locations | a list of URIs to issuer certificate files |
§ setOCSPLocations()
void QCA::CertificateOptions::setOCSPLocations |
( |
const QStringList & |
locations | ) |
|
set the OCSP service locations of the certificate
- Parameters
-
locations | a list of URIs to OCSP services |
§ setAsCA()
void QCA::CertificateOptions::setAsCA |
( |
int |
pathLimit = 8 | ) |
|
set the certificate to be a CA cert
- Parameters
-
pathLimit | the number of intermediate certificates allowable |
§ setAsUser()
void QCA::CertificateOptions::setAsUser |
( |
| ) |
|
set the certificate to be a user cert (this is the default)
§ setSerialNumber()
void QCA::CertificateOptions::setSerialNumber |
( |
const BigInteger & |
i | ) |
|
Set the serial number property on this certificate.
- Parameters
-
i | the serial number to use |
§ setValidityPeriod()
void QCA::CertificateOptions::setValidityPeriod |
( |
const QDateTime & |
start, |
|
|
const QDateTime & |
end |
|
) |
| |
Set the validity period for the certificate.
- Parameters
-
start | the first time this certificate becomes valid |
end | the last time this certificate is valid |
The documentation for this class was generated from the following file: