![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qasn1element_p.h>
Public Types | |
enum | ElementType { BooleanType = 0x01 , IntegerType = 0x02 , BitStringType = 0x03 , OctetStringType = 0x04 , NullType = 0x05 , ObjectIdentifierType = 0x06 , Utf8StringType = 0x0c , PrintableStringType = 0x13 , TeletexStringType = 0x14 , UtcTimeType = 0x17 , GeneralizedTimeType = 0x18 , SequenceType = 0x30 , SetType = 0x31 , Rfc822NameType = 0x81 , DnsNameType = 0x82 , UniformResourceIdentifierType = 0x86 , IpAddressType = 0x87 , Context0Type = 0xA0 , Context1Type = 0xA1 , Context3Type = 0xA3 } |
Public Member Functions | |
QAsn1Element (quint8 type=0, const QByteArray &value=QByteArray()) | |
bool | read (QDataStream &data) |
bool | read (const QByteArray &data) |
void | write (QDataStream &data) const |
bool | toBool (bool *ok=nullptr) const |
QDateTime | toDateTime () const |
QMultiMap< QByteArray, QString > | toInfo () const |
qint64 | toInteger (bool *ok=nullptr) const |
QList< QAsn1Element > | toList () const |
QByteArray | toObjectId () const |
QByteArray | toObjectName () const |
QString | toString () const |
quint8 | type () const |
QByteArray | value () const |
Static Public Member Functions | |
static QAsn1Element | fromBool (bool val) |
static QAsn1Element | fromInteger (unsigned int val) |
static QAsn1Element | fromVector (const QList< QAsn1Element > &items) |
static QAsn1Element | fromObjectId (const QByteArray &id) |
Friends | |
bool | operator== (const QAsn1Element &e1, const QAsn1Element &e2) |
bool | operator!= (const QAsn1Element &e1, const QAsn1Element &e2) |
Definition at line 91 of file qasn1element_p.h.
Definition at line 94 of file qasn1element_p.h.
|
explicit |
|
static |
Definition at line 145 of file qasn1element.cpp.
References BooleanType.
Referenced by toBool().
|
static |
Definition at line 151 of file qasn1element.cpp.
References IntegerType.
Referenced by _q_makePkcs12(), _q_PKCS12_key(), _q_PKCS12_mac(), and _q_PKCS12_shroudedKeyBag().
|
static |
Definition at line 172 of file qasn1element.cpp.
References ObjectIdentifierType.
|
static |
Definition at line 162 of file qasn1element.cpp.
References SequenceType.
bool QAsn1Element::read | ( | const QByteArray & | data | ) |
Definition at line 112 of file qasn1element.cpp.
bool QAsn1Element::read | ( | QDataStream & | data | ) |
Definition at line 62 of file qasn1element.cpp.
bool QAsn1Element::toBool | ( | bool * | ok = nullptr | ) | const |
Definition at line 195 of file qasn1element.cpp.
References fromBool(), and operator==.
Referenced by QTlsPrivate::X509CertificateGeneric::parseExtension().
QDateTime QAsn1Element::toDateTime | ( | ) | const |
Definition at line 212 of file qasn1element.cpp.
QMultiMap< QByteArray, QString > QAsn1Element::toInfo | ( | ) | const |
Definition at line 256 of file qasn1element.cpp.
References SequenceType, and SetType.
qint64 QAsn1Element::toInteger | ( | bool * | ok = nullptr | ) | const |
Definition at line 276 of file qasn1element.cpp.
QList< QAsn1Element > QAsn1Element::toList | ( | ) | const |
Definition at line 301 of file qasn1element.cpp.
QByteArray QAsn1Element::toObjectId | ( | ) | const |
Definition at line 313 of file qasn1element.cpp.
QByteArray QAsn1Element::toObjectName | ( | ) | const |
Definition at line 332 of file qasn1element.cpp.
QString QAsn1Element::toString | ( | ) | const |
Definition at line 338 of file qasn1element.cpp.
|
inline |
Definition at line 141 of file qasn1element_p.h.
|
inline |
Definition at line 142 of file qasn1element_p.h.
void QAsn1Element::write | ( | QDataStream & | data | ) | const |
Definition at line 118 of file qasn1element.cpp.
|
friend |
Definition at line 156 of file qasn1element_p.h.
|
friend |
Definition at line 153 of file qasn1element_p.h.
Referenced by toBool().