• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

qca

QCA::ConstraintType

QCA::ConstraintType Class Reference
[QCA user API]

Certificate constraint. More...

#include <QtCrypto>

List of all members.

Public Types

enum  Section { KeyUsage, ExtendedKeyUsage }

Public Member Functions

 ConstraintType (const ConstraintType &from)
 ConstraintType (const QString &id, Section section)
 ConstraintType (ConstraintTypeKnown known)
 ConstraintType ()
 ~ConstraintType ()
QString id () const
ConstraintTypeKnown known () const
bool operator!= (const ConstraintType &other) const
bool operator< (const ConstraintType &other) const
ConstraintType & operator= (const ConstraintType &from)
bool operator== (const ConstraintType &other) const
Section section () const

Detailed Description

Certificate constraint.

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.

Note:
It is common for a certificate to have more than one purpose.

Definition at line 357 of file qca_cert.h.


Member Enumeration Documentation

enum QCA::ConstraintType::Section

Section of the certificate that the constraint belongs in.

Enumerator:
KeyUsage 

Stored in the key usage section.

ExtendedKeyUsage 

Stored in the extended key usage section.

Definition at line 363 of file qca_cert.h.


Constructor & Destructor Documentation

QCA::ConstraintType::ConstraintType (  ) 

Standard constructor.

Definition at line 901 of file qca_cert.cpp.

QCA::ConstraintType::ConstraintType ( ConstraintTypeKnown  known  ) 

Construct a new constraint.

The section will be derived by known.

Parameters:
known the type as part of the ConstraintTypeKnown enumerator

Definition at line 906 of file qca_cert.cpp.

QCA::ConstraintType::ConstraintType ( const QString &  id,
Section  section 
)

Construct a new constraint.

Parameters:
id the type as an identifier string (OID or internal)
section the section this type belongs in
See also:
id

Definition at line 914 of file qca_cert.cpp.

QCA::ConstraintType::ConstraintType ( const ConstraintType &  from  ) 

Standard copy constructor.

Parameters:
from the constraint type to copy from

Definition at line 922 of file qca_cert.cpp.

QCA::ConstraintType::~ConstraintType (  ) 

Definition at line 927 of file qca_cert.cpp.


Member Function Documentation

QString QCA::ConstraintType::id (  )  const

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).

Definition at line 947 of file qca_cert.cpp.

ConstraintTypeKnown QCA::ConstraintType::known (  )  const

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.

Definition at line 942 of file qca_cert.cpp.

bool QCA::ConstraintType::operator!= ( const ConstraintType &  other  )  const [inline]

Inequality operator.

Parameters:
other the constraint type to compare with this constraint

Definition at line 463 of file qca_cert.h.

bool QCA::ConstraintType::operator< ( const ConstraintType &  other  )  const

Comparison operator.

Parameters:
other the constraint type to compare with this constraint

Definition at line 952 of file qca_cert.cpp.

ConstraintType & QCA::ConstraintType::operator= ( const ConstraintType &  from  ) 

Standard assignment operator.

Parameters:
from the constraint type to assign from

Definition at line 931 of file qca_cert.cpp.

bool QCA::ConstraintType::operator== ( const ConstraintType &  other  )  const

Comparison operator.

Parameters:
other the constraint type to compare with this constraint

Definition at line 975 of file qca_cert.cpp.

ConstraintType::Section QCA::ConstraintType::section (  )  const

The section the constraint is part of.

Definition at line 937 of file qca_cert.cpp.


The documentation for this class was generated from the following files:
  • qca_cert.h
  • qca_cert.cpp

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal