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

kio

KSSLPKCS12 Class Reference

KDE PKCS#12 Certificate. More...

#include <ksslpkcs12.h>

List of all members.


Public Member Functions

bool changePassword (QString pold, QString pnew)
KSSLCertificate * getCertificate ()
EVP_PKEY * getPrivateKey ()
bool isValid (KSSLCertificate::KSSLPurpose p)
bool isValid ()
QString name ()
KSSLCertificate::KSSLValidation revalidate (KSSLCertificate::KSSLPurpose p)
KSSLCertificate::KSSLValidation revalidate ()
void setCert (PKCS12 *c)
bool toFile (QString filename)
QString toString ()
KSSLCertificate::KSSLValidation validate (KSSLCertificate::KSSLPurpose p)
KSSLCertificate::KSSLValidation validate ()
virtual ~KSSLPKCS12 ()

Static Public Member Functions

static KSSLPKCS12 * fromString (QString base64, QString password="")
static KSSLPKCS12 * loadCertFile (QString filename, QString password="")

Protected Member Functions

 KSSLPKCS12 ()
bool parse (QString pass)

Detailed Description

KDE PKCS#12 Certificate.

As of yet, this class is being defined. if you use it, let it be known that BC will break on you until this message is removed.

Author:
George Staikos <staikos@kde.org>
See also:
KSSL, KSSLCertificate KDE PKCS#12 Certificate

Definition at line 61 of file ksslpkcs12.h.


Constructor & Destructor Documentation

KSSLPKCS12::~KSSLPKCS12 (  )  [virtual]

Destroy this PKCS#12 certificate.

Definition at line 58 of file ksslpkcs12.cc.

KSSLPKCS12::KSSLPKCS12 (  )  [protected]

Definition at line 48 of file ksslpkcs12.cc.


Member Function Documentation

bool KSSLPKCS12::changePassword ( QString  pold,
QString  pnew 
)

Change the password of the PKCS#12 in memory.

Parameters:
pold the old password
pnew the new password
Returns:
true on success

Definition at line 133 of file ksslpkcs12.cc.

KSSLPKCS12 * KSSLPKCS12::fromString ( QString  base64,
QString  password = "" 
) [static]

Create a KSSLPKCS12 object from a Base64 in a QString.

Parameters:
base64 the base64 encoded certificate
password a password for the certificate if encrypted
Returns:
the PKCS#12 object, or NULL on failure.

Definition at line 75 of file ksslpkcs12.cc.

KSSLCertificate * KSSLPKCS12::getCertificate (  ) 

Get the X.509 certificate.

Returns:
the X.509 certificate for the PKCS#12 object, or NULL

Definition at line 191 of file ksslpkcs12.cc.

EVP_PKEY * KSSLPKCS12::getPrivateKey (  ) 

Get the private key.

Returns:
the internal OpenSSL private key format

For internal use only.

Definition at line 186 of file ksslpkcs12.cc.

bool KSSLPKCS12::isValid ( KSSLCertificate::KSSLPurpose  p  ) 

Check if the X.509 and private key are valid.

Parameters:
p the purpose to validate for
Returns:
true if valid

Definition at line 276 of file ksslpkcs12.cc.

bool KSSLPKCS12::isValid (  ) 

Check if the X.509 and private key are valid.

Returns:
true if valid

Definition at line 271 of file ksslpkcs12.cc.

KSSLPKCS12 * KSSLPKCS12::loadCertFile ( QString  filename,
QString  password = "" 
) [static]

Create a KSSLPKCS12 object by reading a PKCS#12 file.

Parameters:
filename the filename of the certificate
password a password for the certificate if encrypted
Returns:
the PKCS#12 object, or NULL on failure.

Definition at line 93 of file ksslpkcs12.cc.

QString KSSLPKCS12::name (  ) 

The name of this certificate.

This can be used to refer to the certificate instead of passing the object itself.

Returns:
the name of the certificate

Definition at line 281 of file ksslpkcs12.cc.

bool KSSLPKCS12::parse ( QString  pass  )  [protected]

Definition at line 144 of file ksslpkcs12.cc.

KSSLCertificate::KSSLValidation KSSLPKCS12::revalidate ( KSSLCertificate::KSSLPurpose  p  ) 

Check the X.509 and private key to make sure they're valid.

Ignore any cached validation result.

Parameters:
p the purpose to validate for
Returns:
the result of the validation
See also:
KSSLCertificate

Definition at line 266 of file ksslpkcs12.cc.

KSSLCertificate::KSSLValidation KSSLPKCS12::revalidate (  ) 

Check the X.509 and private key to make sure they're valid.

Ignore any cached validation result.

Returns:
the result of the validation
See also:
KSSLCertificate

Definition at line 261 of file ksslpkcs12.cc.

void KSSLPKCS12::setCert ( PKCS12 *  c  ) 

Raw set the PKCS12 object.

Parameters:
c the openssl PKCS12 object

For internal use only.

Definition at line 126 of file ksslpkcs12.cc.

bool KSSLPKCS12::toFile ( QString  filename  ) 

Write the PKCS#12 to a file in raw mode.

Parameters:
filename the file to write to
Returns:
true on success

Definition at line 219 of file ksslpkcs12.cc.

QString KSSLPKCS12::toString (  ) 

Convert to a Base64 string.

Returns:
the certificate in base64 form

Definition at line 196 of file ksslpkcs12.cc.

KSSLCertificate::KSSLValidation KSSLPKCS12::validate ( KSSLCertificate::KSSLPurpose  p  ) 

Check the X.509 and private key to make sure they're valid.

Parameters:
p the purpose to validate for
Returns:
the result of the validation
See also:
KSSLCertificate

Definition at line 247 of file ksslpkcs12.cc.

KSSLCertificate::KSSLValidation KSSLPKCS12::validate (  ) 

Check the X.509 and private key to make sure they're valid.

Returns:
the result of the validation
See also:
KSSLCertificate

Definition at line 242 of file ksslpkcs12.cc.


The documentation for this class was generated from the following files:
  • ksslpkcs12.h
  • ksslpkcs12.cc

kio

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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