QCA::SecureMessageKey
#include <QtCrypto>
Public Types | |
enum | Type { None , PGP , X509 } |
Public Member Functions | |
SecureMessageKey () | |
SecureMessageKey (const SecureMessageKey &from) | |
bool | havePrivate () const |
bool | isNull () const |
QString | name () const |
SecureMessageKey & | operator= (const SecureMessageKey &from) |
PGPKey | pgpPublicKey () const |
PGPKey | pgpSecretKey () const |
void | setPGPPublicKey (const PGPKey &pub) |
void | setPGPSecretKey (const PGPKey &sec) |
void | setX509CertificateChain (const CertificateChain &c) |
void | setX509KeyBundle (const KeyBundle &kb) |
void | setX509PrivateKey (const PrivateKey &k) |
Type | type () const |
CertificateChain | x509CertificateChain () const |
PrivateKey | x509PrivateKey () const |
Detailed Description
Key for SecureMessage system.
- Examples
- publickeyexample.cpp.
Definition at line 54 of file qca_securemessage.h.
Member Enumeration Documentation
◆ Type
The key type.
Enumerator | |
---|---|
None | no key |
PGP | Pretty Good Privacy key. |
X509 | X.509 CMS key. |
Definition at line 60 of file qca_securemessage.h.
Constructor & Destructor Documentation
◆ SecureMessageKey() [1/2]
Construct an empty key.
◆ SecureMessageKey() [2/2]
Standard copy constructor.
- Parameters
-
from the source key
Member Function Documentation
◆ havePrivate()
Test if this key contains a private key part.
◆ isNull()
Returns true for null object.
◆ name()
The name associated with this key.
For a PGP key, this is the primary user ID
For an X.509 key, this is the Common Name
◆ operator=()
Standard assignment operator.
- Parameters
-
from the source key
◆ pgpPublicKey()
Public key part of a PGP key.
◆ pgpSecretKey()
Private key part of a PGP key.
◆ setPGPPublicKey()
Set the public key part of a PGP key.
- Parameters
-
pub the PGP public key
◆ setPGPSecretKey()
Set the private key part of a PGP key.
- Parameters
-
sec the PGP secretkey
◆ setX509CertificateChain()
Set the public key part of this X.509 key.
- Parameters
-
c the Certificate chain containing the public keys
- Examples
- publickeyexample.cpp.
◆ setX509KeyBundle()
Set the public and private part of this X.509 key with KeyBundle.
- Parameters
-
kb the public and private key bundle
◆ setX509PrivateKey()
Set the private key part of this X.509 key.
- Parameters
-
k the private key
◆ type()
The key type.
◆ x509CertificateChain()
The X.509 certificate chain (public part) for this key.
◆ x509PrivateKey()
The X.509 private key part of this key.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 28 2025 11:55:18 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.