Contents

KeyBuilder Class Reference

The KeyBuilder class is a tool for creating QSslKeys. More...

    #include <KeyBuilder>

Public Types

enum KeyStrength { StrengthLow, StrengthNormal, StrengthHigh, StrengthUltra }

Static Public Members

QSslKey generate ( QSsl::KeyAlgorithm algo, KeyStrength strength )

Detailed Description

The KeyBuilder class is a tool for creating QSslKeys.

The KeyBuilder class provides an easy way to generate a new private key for an X.509 certificate.

Member Type Documentation

enum KeyBuilder::KeyStrength

Member Function Documentation

QSslKey KeyBuilder::generate ( QSsl::KeyAlgorithm algo, KeyStrength strength ) [static]

Generates a new key using the specified algorithm and strength. The algorithm will generally be RSA. The various strengths allow you to specify the trade-off between the security of the key and the time involved in creating it.

Note that this method can take a considerable length of time to execute, so in gui applications it should be run in a worker thread.