.TH "KSSLPKCS7" kde3 "11 Jun 2005" "Version Version 3.4.1" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KSSLPKCS7 \- \fBKDE\fP PKCS#7 Certificate \fBKDE\fP PKCS#7 Certificate.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <ksslpkcs7.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "virtual \fB~KSSLPKCS7\fP ()"
.br
.ti -1c
.RI "\fBQString\fP \fBname\fP ()"
.br
.ti -1c
.RI "\fBQString\fP \fBtoString\fP ()"
.br
.ti -1c
.RI "void \fBsetCert\fP (PKCS7 *c)"
.br
.ti -1c
.RI "\fBKSSLCertificate\fP * \fBgetCertificate\fP ()"
.br
.ti -1c
.RI "\fBKSSLCertChain\fP * \fBgetChain\fP ()"
.br
.ti -1c
.RI "bool \fBtoFile\fP (\fBQString\fP filename)"
.br
.ti -1c
.RI "\fBKSSLCertificate::KSSLValidation\fP \fBvalidate\fP ()"
.br
.ti -1c
.RI "\fBKSSLCertificate::KSSLValidation\fP \fBrevalidate\fP ()"
.br
.ti -1c
.RI "bool \fBisValid\fP ()"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static \fBKSSLPKCS7\fP * \fBfromString\fP (\fBQString\fP base64)"
.br
.ti -1c
.RI "static \fBKSSLPKCS7\fP * \fBloadCertFile\fP (\fBQString\fP filename)"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBKSSL\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
\fBKDE\fP PKCS#7 Certificate \fBKDE\fP PKCS#7 Certificate. 

This class represents a PKCS#7 certificate
.PP
\fBAuthor:\fP
.RS 4
George Staikos <staikos@kde.org> 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKSSL\fP 
.RE
.PP

.PP
Definition at line 60 of file ksslpkcs7.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KSSLPKCS7::~\fBKSSLPKCS7\fP ()\fC [virtual]\fP"
.PP
Destroy this PKCS#7 certificate. 
.PP
Definition at line 55 of file ksslpkcs7.cc.
.PP
References KOpenSSLProxy::PKCS7_free().
.SH "Member Function Documentation"
.PP 
.SS "\fBQString\fP KSSLPKCS7::name ()"
.PP
The name of this certificate. 
.PP
This can be used to refer to the certificate instead of passing the object itself. 
.PP
\fBReturns:\fP
.RS 4
the name of the certificate
.RE
.PP

.PP
Definition at line 191 of file ksslpkcs7.cc.
.PP
References KSSLCertificate::getSubject().
.SS "\fBKSSLPKCS7\fP * KSSLPKCS7::fromString (\fBQString\fP base64)\fC [static]\fP"
.PP
Create a KSSLPKCS7 object from a Base64 in a \fBQString\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIbase64\fP the base64 representation of the certificate 
.RE
.PP
\fBReturns:\fP
.RS 4
a PKCS#7 object, or NULL on failure
.RE
.PP

.PP
Definition at line 63 of file ksslpkcs7.cc.
.PP
References KCodecs::base64Decode(), KTempFile::close(), KTempFile::file(), QString::isEmpty(), QString::latin1(), loadCertFile(), KTempFile::name(), and KTempFile::unlink().
.SS "\fBKSSLPKCS7\fP * KSSLPKCS7::loadCertFile (\fBQString\fP filename)\fC [static]\fP"
.PP
Create a KSSLPKCS7 object by reading a PKCS#7 file. 
.PP
\fBParameters:\fP
.RS 4
\fIfilename\fP the filename to read the certificate from 
.RE
.PP
\fBReturns:\fP
.RS 4
a PKCS#7 object, or NULL on failure
.RE
.PP

.PP
Definition at line 81 of file ksslpkcs7.cc.
.PP
References QFile::handle(), QFile::open(), and setCert().
.PP
Referenced by fromString().
.SS "\fBQString\fP KSSLPKCS7::toString ()"
.PP
Convert to a Base64 string. 
.PP
\fBReturns:\fP
.RS 4
the PKCS#7 object in base64 form
.RE
.PP

.PP
Definition at line 125 of file ksslpkcs7.cc.
.PP
References KCodecs::base64Encode(), and KOpenSSLProxy::i2d_PKCS7().
.SS "void KSSLPKCS7::setCert (PKCS7 * c)"
.PP
Raw set the PKCS7 object. 
.PP
\fBParameters:\fP
.RS 4
\fIc\fP the PKCS7 object 
.RE
.PP

.PP
Definition at line 105 of file ksslpkcs7.cc.
.PP
Referenced by loadCertFile().
.SS "\fBKSSLCertificate\fP * KSSLPKCS7::getCertificate ()"
.PP
Get the bottom level X.509 certificate. 
.PP
\fBReturns:\fP
.RS 4
the certificate, or NULL on failure 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKSSLCertificate\fP
.RE
.PP

.PP
Definition at line 115 of file ksslpkcs7.cc.
.SS "\fBKSSLCertChain\fP * KSSLPKCS7::getChain ()"
.PP
Get the certificate chain. 
.PP
\fBReturns:\fP
.RS 4
the certificate chain 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKSSLCertChain\fP
.RE
.PP

.PP
Definition at line 120 of file ksslpkcs7.cc.
.SS "bool KSSLPKCS7::toFile (\fBQString\fP filename)"
.PP
Write the PKCS#7 to a file in raw mode. 
.PP
\fBParameters:\fP
.RS 4
\fIfilename\fP the filename to write 
.RE
.PP
\fBReturns:\fP
.RS 4
true on success
.RE
.PP

.PP
Definition at line 146 of file ksslpkcs7.cc.
.PP
References QFile::handle(), KOpenSSLProxy::i2d_PKCS7_fp(), QString::latin1(), and QFile::open().
.SS "\fBKSSLCertificate::KSSLValidation\fP KSSLPKCS7::validate ()"
.PP
Check the chain to make sure it's valid. 
.PP
\fBReturns:\fP
.RS 4
the result of the validation procedure
.RE
.PP

.PP
Definition at line 169 of file ksslpkcs7.cc.
.PP
References KSSLCertificate::validate().
.PP
Referenced by isValid().
.SS "\fBKSSLCertificate::KSSLValidation\fP KSSLPKCS7::revalidate ()"
.PP
Check the chain to make sure it's valid. 
.PP
Ignore any cached validation result. 
.PP
\fBReturns:\fP
.RS 4
the result of the validation 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKSSLCertificate\fP
.RE
.PP

.PP
Definition at line 179 of file ksslpkcs7.cc.
.PP
References KSSLCertificate::revalidate().
.SS "bool KSSLPKCS7::isValid ()"
.PP
Return true if the chain is valid. 
.PP

.PP
Definition at line 186 of file ksslpkcs7.cc.
.PP
References validate().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
