#include <QtCrypto>
A CertificateRequest is a unsigned request for a Certificate
QCA::CertificateRequest::CertificateRequest | ( | ) |
Create an empty certificate request.
QCA::CertificateRequest::CertificateRequest | ( | const QString & | fileName | ) |
Create a certificate request based on the contents of a file.
fileName | the file (and path, if necessary) containing a PEM encoded certificate request |
QCA::CertificateRequest::CertificateRequest | ( | const CertificateOptions & | opts, | |
const PrivateKey & | key, | |||
const QString & | provider = QString() | |||
) |
Create a certificate request based on specified options.
opts | the options to use in the certificate request | |
key | the private key that matches the certificate being requested | |
provider | the provider to use, if a specific provider is required |
QCA::CertificateRequest::CertificateRequest | ( | const CertificateRequest & | from | ) |
Standard copy constructor.
from | the request to copy from |
static bool QCA::CertificateRequest::canUseFormat | ( | CertificateRequestFormat | f, | |
const QString & | provider = QString() | |||
) | [static] |
Test if the certificate request can use a specified format.
f | the format to test for | |
provider | the provider to use, if a specific provider is required |
QString QCA::CertificateRequest::challenge | ( | ) | const |
The challenge associated with this certificate request.
void QCA::CertificateRequest::change | ( | CSRContext * | c | ) |
For internal use only.
c | context (internal) |
Constraints QCA::CertificateRequest::constraints | ( | ) | const |
The constraints that apply to this certificate request.
CertificateRequestFormat QCA::CertificateRequest::format | ( | ) | const |
the format that this Certificate request is in
static CertificateRequest QCA::CertificateRequest::fromDER | ( | const QByteArray & | a, | |
ConvertResult * | result = 0 , |
|||
const QString & | provider = QString() | |||
) | [static] |
Import the certificate request from DER.
a | the array containing the certificate request 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 |
static CertificateRequest QCA::CertificateRequest::fromPEM | ( | const QString & | s, | |
ConvertResult * | result = 0 , |
|||
const QString & | provider = QString() | |||
) | [static] |
Import the certificate request from PEM format.
s | the string containing the certificate request 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 |
static CertificateRequest QCA::CertificateRequest::fromPEMFile | ( | const QString & | fileName, | |
ConvertResult * | result = 0 , |
|||
const QString & | provider = QString() | |||
) | [static] |
Import the certificate request from a file.
fileName | the name (and path, if required) of the file containing the certificate request 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 |
static CertificateRequest QCA::CertificateRequest::fromString | ( | const QString & | s, | |
ConvertResult * | result = 0 , |
|||
const QString & | provider = QString() | |||
) | [static] |
Import the CertificateRequest from a string.
s | the string containing to the certificate request | |
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 |
bool QCA::CertificateRequest::isCA | ( | ) | const |
Test if this Certificate Request is for a Certificate Authority certificate.
bool QCA::CertificateRequest::isNull | ( | ) | const |
test if the certificate request is empty
bool QCA::CertificateRequest::operator!= | ( | const CertificateRequest & | other | ) | const [inline] |
Inequality operator.
other | the certificate request to be compared to this certificate request |
CertificateRequest& QCA::CertificateRequest::operator= | ( | const CertificateRequest & | from | ) |
Standard assignment operator.
from | the request to assign from |
bool QCA::CertificateRequest::operator== | ( | const CertificateRequest & | csr | ) | const |
Test for equality of two certificate requests.
csr | the certificate request to be compared to this certificate request |
int QCA::CertificateRequest::pathLimit | ( | ) | const |
The path limit for the certificate in this Certificate Request.
QStringList QCA::CertificateRequest::policies | ( | ) | const |
The policies that apply to this certificate request.
SignatureAlgorithm QCA::CertificateRequest::signatureAlgorithm | ( | ) | const |
The algorithm used to make the signature on this certificate request.
CertificateInfo QCA::CertificateRequest::subjectInfo | ( | ) | const |
Information on the subject of the certificate being requested.
CertificateInfoOrdered QCA::CertificateRequest::subjectInfoOrdered | ( | ) | const |
Information on the subject of the certificate being requested, as an ordered list (QList of CertificateInfoPair).
CertificateInfoPair for the elements in the list
PublicKey QCA::CertificateRequest::subjectPublicKey | ( | ) | const |
The public key belonging to the issuer.
QByteArray QCA::CertificateRequest::toDER | ( | ) | const |
Export the Certificate Request into a DER format.
QString QCA::CertificateRequest::toPEM | ( | ) | const |
Export the Certificate Request into a PEM format.
bool QCA::CertificateRequest::toPEMFile | ( | const QString & | fileName | ) | const |
Export the Certificate into PEM format in a file.
fileName | the name of the file to use |
QString QCA::CertificateRequest::toString | ( | ) | const |
Export the CertificateRequest to a string.