|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.network.QSslSocket.PeerVerifyMode
public static final class QSslSocket.PeerVerifyMode
Describes the peer verification modes for QSslSocket
. The default mode is AutoVerifyPeer
, which selects an appropriate mode depending on the socket's QSocket::SslMode.
QSslSocket::peerVerifyMode()
.
Field Summary | |
---|---|
static QSslSocket.PeerVerifyMode |
AutoVerifyPeer
QSslSocket will automaticaly use QueryPeer for server sockets and VerifyPeer for client sockets. |
static QSslSocket.PeerVerifyMode |
QueryPeer
QSslSocket will request a certificate from the peer, but does not require this certificate to be valid. |
static QSslSocket.PeerVerifyMode |
VerifyNone
QSslSocket will not request a certificate from the peer. |
static QSslSocket.PeerVerifyMode |
VerifyPeer
QSslSocket will request a certificate from the peer during the SSL handshake phase, and requires that this certificate is valid. |
Method Summary | |
---|---|
static QSslSocket.PeerVerifyMode |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QSslSocket.PeerVerifyMode |
valueOf(java.lang.String name)
|
static QSslSocket.PeerVerifyMode[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final QSslSocket.PeerVerifyMode VerifyNone
QSslSocket
will not request a certificate from the peer. You can set this mode if you are not interested in the identity of the other side of the connection. The connection will still be encrypted, and your socket will still send its local certificate to the peer if it's requested.
public static final QSslSocket.PeerVerifyMode QueryPeer
QSslSocket
will request a certificate from the peer, but does not require this certificate to be valid. This is useful when you want to display peer certificate details to the user without affecting the actual SSL handshake. This mode is the default for servers.
public static final QSslSocket.PeerVerifyMode VerifyPeer
QSslSocket
will request a certificate from the peer during the SSL handshake phase, and requires that this certificate is valid. On failure, QSslSocket
will emit the QSslSocket::sslErrors()
signal. This mode is the default for clients.
public static final QSslSocket.PeerVerifyMode AutoVerifyPeer
QSslSocket
will automaticaly use QueryPeer
for server sockets and VerifyPeer
for client sockets.
Method Detail |
---|
public static QSslSocket.PeerVerifyMode[] values()
public static QSslSocket.PeerVerifyMode valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static QSslSocket.PeerVerifyMode resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |