#include <QtCrypto>
◆ Type
The key type.
| Enumerator |
|---|
| None | no key
|
| PGP | Pretty Good Privacy key.
|
| X509 | X.509 CMS key.
|
◆ SecureMessageKey() [1/2]
| QCA::SecureMessageKey::SecureMessageKey |
( |
| ) |
|
◆ SecureMessageKey() [2/2]
Standard copy constructor.
- Parameters
-
◆ operator=()
Standard assignment operator.
- Parameters
-
◆ isNull()
| bool QCA::SecureMessageKey::isNull |
( |
| ) |
const |
Returns true for null object.
◆ type()
| Type QCA::SecureMessageKey::type |
( |
| ) |
const |
◆ pgpPublicKey()
| PGPKey QCA::SecureMessageKey::pgpPublicKey |
( |
| ) |
const |
Public key part of a PGP key.
◆ pgpSecretKey()
| PGPKey QCA::SecureMessageKey::pgpSecretKey |
( |
| ) |
const |
Private key part of a PGP key.
◆ setPGPPublicKey()
| void QCA::SecureMessageKey::setPGPPublicKey |
( |
const PGPKey & |
pub | ) |
|
Set the public key part of a PGP key.
- Parameters
-
◆ setPGPSecretKey()
| void QCA::SecureMessageKey::setPGPSecretKey |
( |
const PGPKey & |
sec | ) |
|
Set the private key part of a PGP key.
- Parameters
-
◆ x509CertificateChain()
The X.509 certificate chain (public part) for this key.
◆ x509PrivateKey()
| PrivateKey QCA::SecureMessageKey::x509PrivateKey |
( |
| ) |
const |
The X.509 private key part of this key.
◆ setX509CertificateChain()
| void QCA::SecureMessageKey::setX509CertificateChain |
( |
const CertificateChain & |
c | ) |
|
◆ setX509PrivateKey()
| void QCA::SecureMessageKey::setX509PrivateKey |
( |
const PrivateKey & |
k | ) |
|
Set the private key part of this X.509 key.
- Parameters
-
◆ setX509KeyBundle()
| void QCA::SecureMessageKey::setX509KeyBundle |
( |
const KeyBundle & |
kb | ) |
|
Set the public and private part of this X.509 key with KeyBundle.
- Parameters
-
| kb | the public and private key bundle |
◆ havePrivate()
| bool QCA::SecureMessageKey::havePrivate |
( |
| ) |
const |
Test if this key contains a private key part.
◆ name()
| QString QCA::SecureMessageKey::name |
( |
| ) |
const |
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
The documentation for this class was generated from the following file: