QSslCipherclass represents an SSL cryptographic cipher. 更多 …
def
__eq__
(other)
def
__ne__
(other)
def
authenticationMethod
()
def
encryptionMethod
()
def
isNull
()
def
keyExchangeMethod
()
def
name
()
def
protocol
()
def
protocolString
()
def
supportedBits
()
def
swap
(other)
def
usedBits
()
QSslCipherstores information about one cryptographic cipher. It is most commonly used withQSslSocket, either for configuring which ciphers the socket can use, or for displaying the socket’s ciphers to the user.另请参阅
QSslCipher
¶
QSslCipher(other)
QSslCipher(name)
QSslCipher(name, protocol)
- param name
unicode
- param protocol
SslProtocol- param other
构造空
QSslCipher
对象。
构造
QSslCipher
object for the cipher determined by
name
and
protocol
. The constructor accepts only supported ciphers (i.e., the
name
and
protocol
must identify a cipher in the list of ciphers returned by
supportedCiphers()
).
可以调用
isNull()
after construction to check if
name
and
protocol
correctly identified a supported cipher.
PySide2.QtNetwork.QSslCipher.
authenticationMethod
(
)
¶
unicode
Returns the cipher’s authentication method as a
QString
.
PySide2.QtNetwork.QSslCipher.
encryptionMethod
(
)
¶
unicode
Returns the cipher’s encryption method as a
QString
.
PySide2.QtNetwork.QSslCipher.
isNull
(
)
¶
bool
返回
true
if this is a null cipher; otherwise returns
false
.
PySide2.QtNetwork.QSslCipher.
keyExchangeMethod
(
)
¶
unicode
Returns the cipher’s key exchange method as a
QString
.
PySide2.QtNetwork.QSslCipher.
name
(
)
¶
unicode
Returns the name of the cipher, or an empty
QString
if this is a null cipher.
另请参阅
PySide2.QtNetwork.QSslCipher.
__ne__
(
other
)
¶
other
–
QSslCipher
bool
返回
true
if this cipher is not the same as
other
; otherwise, false is returned.
PySide2.QtNetwork.QSslCipher.
__eq__
(
other
)
¶
other
–
QSslCipher
bool
返回
true
if this cipher is the same as
other
; otherwise, false is returned.
PySide2.QtNetwork.QSslCipher.
protocol
(
)
¶
SslProtocol
Returns the cipher’s protocol type, or
UnknownProtocol
if
QSslCipher
is unable to determine the protocol (
protocolString()
may contain more information).
另请参阅
PySide2.QtNetwork.QSslCipher.
protocolString
(
)
¶
unicode
Returns the cipher’s protocol as a
QString
.
另请参阅
PySide2.QtNetwork.QSslCipher.
supportedBits
(
)
¶
int
Returns the number of bits supported by the cipher.
另请参阅
PySide2.QtNetwork.QSslCipher.
swap
(
other
)
¶
other
–
QSslCipher
Swaps this cipher instance with
other
。此函数非常快,且从不失败。
PySide2.QtNetwork.QSslCipher.
usedBits
(
)
¶
int
Returns the number of bits used by the cipher.
另请参阅