com.trolltech.qt.network
Class QSslSocket.PeerVerifyMode

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.network.QSslSocket.PeerVerifyMode
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable
Enclosing class:
QSslSocket

public static final class QSslSocket.PeerVerifyMode
extends java.lang.Enum
implements QtEnumerator

Describes the peer verification modes for QSslSocket. The default mode is AutoVerifyPeer , which selects an appropriate mode depending on the socket's QSocket::SslMode.

See also:
QSslSocket::peerVerifyMode().

See Also:
Serialized Form

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)
          Returns the QSslSocket$PeerVerifyMode constant with the specified int.
 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

VerifyNone

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.


QueryPeer

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.


VerifyPeer

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.


AutoVerifyPeer

public static final QSslSocket.PeerVerifyMode AutoVerifyPeer
QSslSocket will automaticaly use QueryPeer for server sockets and VerifyPeer for client sockets.

Method Detail

values

public static QSslSocket.PeerVerifyMode[] values()

valueOf

public static QSslSocket.PeerVerifyMode valueOf(java.lang.String name)

value

public int value()
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

resolve

public static QSslSocket.PeerVerifyMode resolve(int value)
Returns the QSslSocket$PeerVerifyMode constant with the specified int.