• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/kssl
 

tdeio/kssl

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

#include <ksslpkcs12.h>

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

bool parse (TQString pass)
 

Friends

class KSSL
 

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 61 of file ksslpkcs12.h.

Constructor & Destructor Documentation

◆ ~KSSLPKCS12()

KSSLPKCS12::~KSSLPKCS12 ( )
virtual

Destroy this PKCS#12 certificate.

Definition at line 48 of file ksslpkcs12.cpp.

◆ KSSLPKCS12()

KSSLPKCS12::KSSLPKCS12 ( )
protected

Definition at line 38 of file ksslpkcs12.cpp.

Member Function Documentation

◆ changePassword()

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

Change the password of the PKCS#12 in memory.

Parameters
poldthe old password
pnewthe new password
Returns
true on success

Definition at line 123 of file ksslpkcs12.cpp.

◆ fromString()

KSSLPKCS12 * KSSLPKCS12::fromString ( TQString  base64,
TQString  password = "" 
)
static

Create a KSSLPKCS12 object from a Base64 in a TQString.

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

Definition at line 65 of file ksslpkcs12.cpp.

◆ getCertificate()

KSSLCertificate * KSSLPKCS12::getCertificate ( )

Get the X.509 certificate.

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

Definition at line 181 of file ksslpkcs12.cpp.

◆ getPrivateKey()

EVP_PKEY * KSSLPKCS12::getPrivateKey ( )

Get the private key.

Returns
the internal OpenSSL private key format

Definition at line 176 of file ksslpkcs12.cpp.

◆ isValid() [1/2]

bool KSSLPKCS12::isValid ( )

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

Returns
true if valid

Definition at line 261 of file ksslpkcs12.cpp.

◆ isValid() [2/2]

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

◆ loadCertFile()

KSSLPKCS12 * KSSLPKCS12::loadCertFile ( TQString  filename,
TQString  password = "" 
)
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 83 of file ksslpkcs12.cpp.

◆ name()

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

◆ parse()

bool KSSLPKCS12::parse ( TQString  pass)
protected

Definition at line 134 of file ksslpkcs12.cpp.

◆ revalidate() [1/2]

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

◆ revalidate() [2/2]

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

◆ setCert()

void KSSLPKCS12::setCert ( PKCS12 *  c)

Raw set the PKCS12 object.

Parameters
cthe openssl PKCS12 object

Definition at line 116 of file ksslpkcs12.cpp.

◆ toFile()

bool KSSLPKCS12::toFile ( TQString  filename)

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

Parameters
filenamethe file to write to
Returns
true on success

Definition at line 209 of file ksslpkcs12.cpp.

◆ toString()

TQString KSSLPKCS12::toString ( )

Convert to a Base64 string.

Returns
the certificate in base64 form

Definition at line 186 of file ksslpkcs12.cpp.

◆ validate() [1/2]

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

◆ validate() [2/2]

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

Friends And Related Function Documentation

◆ KSSL

friend class KSSL
friend

Definition at line 62 of file ksslpkcs12.h.


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

tdeio/kssl

Skip menu "tdeio/kssl"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/kssl

Skip menu "tdeio/kssl"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/kssl by doxygen 1.9.4
This website is maintained by Timothy Pearson.