• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KIO

Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KSSLPKCS12 Class Reference

#include <ksslpkcs12.h>

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

 KSSLPKCS12 ()
 
bool parse (const 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 staik.nosp@m.os@k.nosp@m.de.or.nosp@m.g
See also
KSSL, KSSLCertificate KDE PKCS#12 Certificate

Definition at line 63 of file ksslpkcs12.h.

Constructor & Destructor Documentation

KSSLPKCS12::~KSSLPKCS12 ( )
virtual

Destroy this PKCS#12 certificate.

Definition at line 58 of file ksslpkcs12.cpp.

KSSLPKCS12::KSSLPKCS12 ( )
protected

Definition at line 48 of file ksslpkcs12.cpp.

Member Function Documentation

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

Change the password of the PKCS#12 in memory.

Parameters
poldthe old password
pnewthe new password
Returns
true on success

Definition at line 132 of file ksslpkcs12.cpp.

KSSLPKCS12 * KSSLPKCS12::fromString ( const QString &  base64,
const QString &  password = QLatin1String("") 
)
static

Create a KSSLPKCS12 object from a Base64 in a QString.

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

Definition at line 75 of file ksslpkcs12.cpp.

KSSLCertificate * KSSLPKCS12::getCertificate ( )

Get the X.509 certificate.

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

Definition at line 190 of file ksslpkcs12.cpp.

EVP_PKEY * KSSLPKCS12::getPrivateKey ( )

Get the private key.

Returns
the internal OpenSSL private key format

Definition at line 185 of file ksslpkcs12.cpp.

bool KSSLPKCS12::isValid ( )

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

Returns
true if valid

Definition at line 268 of file ksslpkcs12.cpp.

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

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

Parameters
pthe purpose to validate for
Returns
true if valid

Definition at line 273 of file ksslpkcs12.cpp.

KSSLPKCS12 * KSSLPKCS12::loadCertFile ( const QString &  filename,
const QString &  password = QLatin1String("") 
)
static

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

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

Definition at line 92 of file ksslpkcs12.cpp.

QString KSSLPKCS12::name ( ) const

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 278 of file ksslpkcs12.cpp.

bool KSSLPKCS12::parse ( const QString &  pass)
protected

Definition at line 143 of file ksslpkcs12.cpp.

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 258 of file ksslpkcs12.cpp.

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
pthe purpose to validate for
Returns
the result of the validation
See also
KSSLCertificate

Definition at line 263 of file ksslpkcs12.cpp.

void KSSLPKCS12::setCert ( PKCS12 *  c)

Raw set the PKCS12 object.

Parameters
cthe openssl PKCS12 object

Definition at line 125 of file ksslpkcs12.cpp.

bool KSSLPKCS12::toFile ( const QString &  filename)

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

Parameters
filenamethe file to write to
Returns
true on success

Definition at line 216 of file ksslpkcs12.cpp.

QString KSSLPKCS12::toString ( )

Convert to a Base64 string.

Returns
the certificate in base64 form

Definition at line 195 of file ksslpkcs12.cpp.

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 239 of file ksslpkcs12.cpp.

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

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

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

Definition at line 244 of file ksslpkcs12.cpp.


The documentation for this class was generated from the following files:
  • ksslpkcs12.h
  • ksslpkcs12.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal