|
| CertContext (Provider *p) |
|
virtual bool | compare (const CertContext *other) const =0 |
|
virtual bool | createSelfSigned (const CertificateOptions &opts, const PKeyContext &priv)=0 |
|
virtual bool | isIssuerOf (const CertContext *other) const =0 |
|
virtual const CertContextProps * | props () const =0 |
|
virtual PKeyContext * | subjectPublicKey () const =0 |
|
virtual Validity | validate (const QList< CertContext * > &trusted, const QList< CertContext * > &untrusted, const QList< CRLContext * > &crls, UsageMode u, ValidateFlags vf) const =0 |
|
virtual Validity | validate_chain (const QList< CertContext * > &chain, const QList< CertContext * > &trusted, const QList< CRLContext * > &crls, UsageMode u, ValidateFlags vf) const =0 |
|
| CertBase (Provider *p, const QString &type) |
|
virtual ConvertResult | fromDER (const QByteArray &a)=0 |
|
virtual ConvertResult | fromPEM (const QString &s)=0 |
|
virtual QByteArray | toDER () const =0 |
|
virtual QString | toPEM () const =0 |
|
virtual Context * | clone () const =0 |
|
Provider * | provider () const |
|
bool | sameProvider (const Context *c) const |
|
QString | type () const |
|
X.509 certificate provider.
- Note
- This class is part of the provider plugin interface and should not be used directly by applications. You probably want Certificate instead.
Create a self-signed certificate based on the given options and private key.
Returns true if successful, otherwise false.
If successful, this object becomes the self-signed certificate. If unsuccessful, this object is considered to be in an uninitialized state.
- Parameters
-
opts | the options to set on the certificate |
priv | the key to be used to sign the certificate |