• PySide 模块
  • PySide.QtNetwork
  • 内容表

    上一话题

    QNetworkRequest

    下一话题

    QSslSocket

    QSslKey

    概要

    函数

    详细描述

    PySide.QtNetwork.QSslKey class provides an interface for private and public keys.

    PySide.QtNetwork.QSslKey provides a simple API for managing keys.

    class PySide.QtNetwork. QSslKey
    class PySide.QtNetwork. QSslKey ( device , algorithm [ , format=QSsl.Pem [ , type=QSsl.PrivateKey [ , passPhrase=QByteArray() ] ] ] )
    class PySide.QtNetwork. QSslKey ( encoded , algorithm [ , format=QSsl.Pem [ , type=QSsl.PrivateKey [ , passPhrase=QByteArray() ] ] ] )
    class PySide.QtNetwork. QSslKey ( other )
    参数:

    Constructs a null key.

    Constructs an identical copy of other .

    PySide.QtNetwork.QSslKey. algorithm ( )
    返回类型: PySide.QtNetwork.QSsl.KeyAlgorithm

    Returns the key algorithm.

    PySide.QtNetwork.QSslKey. clear ( )

    Clears the contents of this key, making it a null key.

    PySide.QtNetwork.QSslKey. handle ( )
    返回类型: PySide.QtCore.Qt::HANDLE

    Returns a pointer to the native key handle, if it is available; otherwise a null pointer is returned.

    You can use this handle together with the native API to access extended information about the key.

    警告

    Use of this function has a high probability of being non-portable, and its return value may vary across platforms, and between minor Qt releases.

    PySide.QtNetwork.QSslKey. isNull ( )
    返回类型: PySide.QtCore.bool

    Returns true if this is a null key; otherwise false.

    PySide.QtNetwork.QSslKey. length ( )
    返回类型: PySide.QtCore.int

    Returns the length of the key in bits, or -1 if the key is null.

    PySide.QtNetwork.QSslKey. __ne__ ( key )
    参数: key PySide.QtNetwork.QSslKey
    返回类型: PySide.QtCore.bool

    Returns true if this key is not equal to key other ;否则返回 false。

    PySide.QtNetwork.QSslKey. __eq__ ( key )
    参数: key PySide.QtNetwork.QSslKey
    返回类型: PySide.QtCore.bool

    Returns true if this key is equal to other ;否则返回 false。

    PySide.QtNetwork.QSslKey. toDer ( [ passPhrase=QByteArray() ] )
    参数: passPhrase PySide.QtCore.QByteArray
    返回类型: PySide.QtCore.QByteArray

    Returns the key in DER encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.

    PySide.QtNetwork.QSslKey. toPem ( [ passPhrase=QByteArray() ] )
    参数: passPhrase PySide.QtCore.QByteArray
    返回类型: PySide.QtCore.QByteArray

    Returns the key in PEM encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.

    PySide.QtNetwork.QSslKey. type ( )
    返回类型: PySide.QtNetwork.QSsl.KeyType

    Returns the type of the key (i.e., PublicKey or PrivateKey).