• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

qca

QCA::CertificateRequest

QCA::CertificateRequest Class Reference
[QCA user API]

Certificate Request More...

#include <QtCrypto>

Inheritance diagram for QCA::CertificateRequest:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CertificateRequest (const CertificateRequest &from)
 CertificateRequest (const CertificateOptions &opts, const PrivateKey &key, const QString &provider=QString())
 CertificateRequest (const QString &fileName)
 CertificateRequest ()
 ~CertificateRequest ()
QString challenge () const
void change (CSRContext *c)
Constraints constraints () const
CertificateRequestFormat format () const
bool isCA () const
bool isNull () const
bool operator!= (const CertificateRequest &other) const
CertificateRequest & operator= (const CertificateRequest &from)
bool operator== (const CertificateRequest &csr) const
int pathLimit () const
QStringList policies () const
SignatureAlgorithm signatureAlgorithm () const
CertificateInfo subjectInfo () const
CertificateInfoOrdered subjectInfoOrdered () const
PublicKey subjectPublicKey () const
QByteArray toDER () const
QString toPEM () const
bool toPEMFile (const QString &fileName) const
QString toString () const

Static Public Member Functions

static bool canUseFormat (CertificateRequestFormat f, const QString &provider=QString())
static CertificateRequest fromDER (const QByteArray &a, ConvertResult *result=0, const QString &provider=QString())
static CertificateRequest fromPEM (const QString &s, ConvertResult *result=0, const QString &provider=QString())
static CertificateRequest fromPEMFile (const QString &fileName, ConvertResult *result=0, const QString &provider=QString())
static CertificateRequest fromString (const QString &s, ConvertResult *result=0, const QString &provider=QString())

Detailed Description

Certificate Request

A CertificateRequest is a unsigned request for a Certificate

Definition at line 1293 of file qca_cert.h.


Constructor & Destructor Documentation

QCA::CertificateRequest::CertificateRequest (  ) 

Create an empty certificate request.

Definition at line 1820 of file qca_cert.cpp.

QCA::CertificateRequest::CertificateRequest ( const QString &  fileName  ) 

Create a certificate request based on the contents of a file.

Parameters:
fileName the file (and path, if necessary) containing a PEM encoded certificate request

Definition at line 1825 of file qca_cert.cpp.

QCA::CertificateRequest::CertificateRequest ( const CertificateOptions &  opts,
const PrivateKey &  key,
const QString &  provider = QString() 
)

Create a certificate request based on specified options.

Parameters:
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

Definition at line 1831 of file qca_cert.cpp.

QCA::CertificateRequest::CertificateRequest ( const CertificateRequest &  from  ) 

Standard copy constructor.

Parameters:
from the request to copy from

Definition at line 1841 of file qca_cert.cpp.

QCA::CertificateRequest::~CertificateRequest (  ) 

Definition at line 1846 of file qca_cert.cpp.


Member Function Documentation

bool QCA::CertificateRequest::canUseFormat ( CertificateRequestFormat  f,
const QString &  provider = QString() 
) [static]

Test if the certificate request can use a specified format.

Parameters:
f the format to test for
provider the provider to use, if a specific provider is required
Returns:
true if the certificate request can use the specified format

Definition at line 1862 of file qca_cert.cpp.

QString QCA::CertificateRequest::challenge (  )  const

The challenge associated with this certificate request.

Definition at line 1915 of file qca_cert.cpp.

void QCA::CertificateRequest::change ( CSRContext *  c  ) 

For internal use only.

Parameters:
c context (internal)

Definition at line 2015 of file qca_cert.cpp.

Constraints QCA::CertificateRequest::constraints (  )  const

The constraints that apply to this certificate request.

Note:
this only applies to PKCS#10 format certificate requests

Definition at line 1887 of file qca_cert.cpp.

CertificateRequestFormat QCA::CertificateRequest::format (  )  const

the format that this Certificate request is in

Definition at line 1870 of file qca_cert.cpp.

CertificateRequest QCA::CertificateRequest::fromDER ( const QByteArray &  a,
ConvertResult *  result = 0,
const QString &  provider = QString() 
) [static]

Import the certificate request from DER.

Parameters:
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
Returns:
the CertificateRequest corresponding to the certificate request in the provided array
Note:
this only applies to PKCS#10 format certificate requests

Definition at line 1956 of file qca_cert.cpp.

CertificateRequest QCA::CertificateRequest::fromPEM ( const QString &  s,
ConvertResult *  result = 0,
const QString &  provider = QString() 
) [static]

Import the certificate request from PEM format.

Parameters:
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
Returns:
the CertificateRequest corresponding to the certificate request in the provided string
Note:
this only applies to PKCS#10 format certificate requests

Definition at line 1970 of file qca_cert.cpp.

CertificateRequest QCA::CertificateRequest::fromPEMFile ( const QString &  fileName,
ConvertResult *  result = 0,
const QString &  provider = QString() 
) [static]

Import the certificate request from a file.

Parameters:
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
Returns:
the CertificateRequest corresponding to the certificate request in the provided string
Note:
this only applies to PKCS#10 format certificate requests

Definition at line 1984 of file qca_cert.cpp.

CertificateRequest QCA::CertificateRequest::fromString ( const QString &  s,
ConvertResult *  result = 0,
const QString &  provider = QString() 
) [static]

Import the CertificateRequest from a string.

Parameters:
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
Returns:
the CertificateRequest corresponding to the certificate request in the provided string
Note:
this only applies to SPKAC format certificate requests

Definition at line 2001 of file qca_cert.cpp.

bool QCA::CertificateRequest::isCA (  )  const

Test if this Certificate Request is for a Certificate Authority certificate.

Note:
this only applies to PKCS#10 format certificate requests

Definition at line 1905 of file qca_cert.cpp.

bool QCA::CertificateRequest::isNull (  )  const

test if the certificate request is empty

Returns:
true if the certificate request is empty, otherwise false

Definition at line 1857 of file qca_cert.cpp.

bool QCA::CertificateRequest::operator!= ( const CertificateRequest &  other  )  const [inline]

Inequality operator.

Parameters:
other the certificate request to be compared to this certificate request

Definition at line 1441 of file qca_cert.h.

CertificateRequest & QCA::CertificateRequest::operator= ( const CertificateRequest &  from  ) 

Standard assignment operator.

Parameters:
from the request to assign from

Reimplemented from QCA::Algorithm.

Definition at line 1850 of file qca_cert.cpp.

bool QCA::CertificateRequest::operator== ( const CertificateRequest &  csr  )  const

Test for equality of two certificate requests.

Parameters:
csr the certificate request to be compared to this certificate request
Returns:
true if the two certificate requests are the same

Definition at line 1925 of file qca_cert.cpp.

int QCA::CertificateRequest::pathLimit (  )  const

The path limit for the certificate in this Certificate Request.

Note:
this only applies to PKCS#10 format certificate requests

Definition at line 1910 of file qca_cert.cpp.

QStringList QCA::CertificateRequest::policies (  )  const

The policies that apply to this certificate request.

Note:
this only applies to PKCS#10 format certificate requests

Definition at line 1892 of file qca_cert.cpp.

SignatureAlgorithm QCA::CertificateRequest::signatureAlgorithm (  )  const

The algorithm used to make the signature on this certificate request.

Definition at line 1920 of file qca_cert.cpp.

CertificateInfo QCA::CertificateRequest::subjectInfo (  )  const

Information on the subject of the certificate being requested.

Note:
this only applies to PKCS#10 format certificate requests
See also:
subjectInfoOrdered for a version that maintains order in the subject information.

Definition at line 1877 of file qca_cert.cpp.

CertificateInfoOrdered QCA::CertificateRequest::subjectInfoOrdered (  )  const

Information on the subject of the certificate being requested, as an ordered list (QList of CertificateInfoPair).

Note:
this only applies to PKCS#10 format certificate requests
See also:
subjectInfo for a version that does not maintain order, but allows access based on a multimap.
CertificateInfoPair for the elements in the list

Definition at line 1882 of file qca_cert.cpp.

PublicKey QCA::CertificateRequest::subjectPublicKey (  )  const

The public key belonging to the issuer.

Definition at line 1897 of file qca_cert.cpp.

QByteArray QCA::CertificateRequest::toDER (  )  const

Export the Certificate Request into a DER format.

Note:
this only applies to PKCS#10 format certificate requests

Definition at line 1941 of file qca_cert.cpp.

QString QCA::CertificateRequest::toPEM (  )  const

Export the Certificate Request into a PEM format.

Note:
this only applies to PKCS#10 format certificate requests

Definition at line 1946 of file qca_cert.cpp.

bool QCA::CertificateRequest::toPEMFile ( const QString &  fileName  )  const

Export the Certificate into PEM format in a file.

Parameters:
fileName the name of the file to use
Note:
this only applies to PKCS#10 format certificate requests

Definition at line 1951 of file qca_cert.cpp.

QString QCA::CertificateRequest::toString (  )  const

Export the CertificateRequest to a string.

Returns:
the string corresponding to the certificate request
Note:
this only applies to SPKAC format certificate requests

Definition at line 1996 of file qca_cert.cpp.


The documentation for this class was generated from the following files:
  • qca_cert.h
  • qca_cert.cpp

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal