#include <qca_cert.h>
Collaboration diagram for QCA::ConstraintType:
Public Types | |
enum | Section { KeyUsage, ExtendedKeyUsage } |
Public Member Functions | |
ConstraintType () | |
ConstraintType (ConstraintTypeKnown known) | |
ConstraintType (const QString &id, Section section) | |
ConstraintType (const ConstraintType &from) | |
ConstraintType & | operator= (const ConstraintType &from) |
Section | section () const |
ConstraintTypeKnown | known () const |
QString | id () const |
bool | operator< (const ConstraintType &other) const |
bool | operator== (const ConstraintType &other) const |
bool | operator!= (const ConstraintType &other) const |
X.509 certificates can be constrained in their application - that is, some certificates can only be used for certain purposes. This class is used to identify an approved purpose for a certificate.
|
Section of the certificate that the constraint belongs in.
|
|
Standard constructor.
|
|
Construct a new constraint. The section will be derived by known.
|
|
Construct a new constraint.
|
|
Standard copy constructor.
|
|
Standard assignment operator.
|
|
The section the constraint is part of.
|
|
The type as part of the ConstraintTypeKnown enumerator. This function may return a value that does not exist in the enumerator. In that case, you may use id() to determine the type. |
|
The type as an identifier string. For types that have OIDs, this function returns an OID in string form. For types that do not have OIDs, this function returns an internal identifier string whose first character is not a digit (this allows you to tell the difference between an OID and an internal identifier). It is hereby stated that the KeyUsage bit fields shall use the internal identifier format "KeyUsage.[rfc field name]". For example, the keyEncipherment field would have the identifier "KeyUsage.keyEncipherment". Applications should not store, use, or compare against internal identifiers unless the identifiers are explicitly documented (e.g. KeyUsage). |
|
Comparison operator.
|
|
Comparison operator.
|
|
Inequality operator.
|