com.trolltech.qt.network
Class QSslCipher

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.network.QSslCipher
All Implemented Interfaces:
QtJambiInterface, java.lang.Cloneable

public class QSslCipher
extends QtJambiObject
implements java.lang.Cloneable

The QSslCipher class represents an SSL cryptographic cipher. QSslCipher stores information about one cryptographic cipher. It is most commonly used with QSslSocket, either for configuring which ciphers the socket can use, or for displaying the socket's ciphers to the user.

See also:
QSslSocket, and QSslKey.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9
 
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal
 
Field Summary
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
QSslCipher()
          Constructs an empty QSslCipher object.
QSslCipher(QSslCipher other)
          Constructs an identical copy of the other cipher.
QSslCipher(java.lang.String name, QSsl.SslProtocol protocol)
          Constructs a QSslCipher object for the cipher determined by name and protocol.
 
Method Summary
 java.lang.String authenticationMethod()
          Returns the cipher's authentication method as a QString.
 QSslCipher clone()
          This method is reimplemented for internal reasons
 java.lang.String encryptionMethod()
          Returns the cipher's encryption method as a QString.
 boolean isNull()
          Returns true if this is a null cipher; otherwise returns false.
 java.lang.String keyExchangeMethod()
          Returns the cipher's key exchange method as a QString.
 java.lang.String name()
          Returns the name of the cipher, or an empty QString if this is a null cipher.
 QSsl.SslProtocol protocol()
          Returns the cipher's protocol type, or QSsl::UnknownProtocol if QSslCipher is unable to determine the protocol (protocolString() may contain more information).
 java.lang.String protocolString()
          Returns the cipher's protocol as a QString.
 int supportedBits()
          Returns the number of bits supported by the cipher.
 java.lang.String toString()
          Returns a string representation of the this QSslCipher.
 int usedBits()
          Returns the number of bits used by the cipher.
 
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
 
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
__qt_signalInitialization
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QSslCipher

public QSslCipher()
Constructs an empty QSslCipher object.


QSslCipher

public QSslCipher(QSslCipher other)
Constructs an identical copy of the other cipher.


QSslCipher

public QSslCipher(java.lang.String name,
                  QSsl.SslProtocol protocol)
Constructs a 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 QSslSocket::supportedCiphers()).

You can call isNull() after construction to check if name and protocol correctly identified a supported cipher.

Method Detail

authenticationMethod

public final java.lang.String authenticationMethod()
Returns the cipher's authentication method as a QString.


encryptionMethod

public final java.lang.String encryptionMethod()
Returns the cipher's encryption method as a QString.


isNull

public final boolean isNull()
Returns true if this is a null cipher; otherwise returns false.


keyExchangeMethod

public final java.lang.String keyExchangeMethod()
Returns the cipher's key exchange method as a QString.


name

public final java.lang.String name()
Returns the name of the cipher, or an empty QString if this is a null cipher.

See also:
isNull().


protocol

public final QSsl.SslProtocol protocol()
Returns the cipher's protocol type, or QSsl::UnknownProtocol if QSslCipher is unable to determine the protocol (protocolString() may contain more information).

See also:
protocolString().


protocolString

public final java.lang.String protocolString()
Returns the cipher's protocol as a QString.

See also:
protocol().


supportedBits

public final int supportedBits()
Returns the number of bits supported by the cipher.

See also:
usedBits().


usedBits

public final int usedBits()
Returns the number of bits used by the cipher.

See also:
supportedBits().


toString

public java.lang.String toString()
Returns a string representation of the this QSslCipher.

Overrides:
toString in class java.lang.Object

clone

public QSslCipher clone()
This method is reimplemented for internal reasons

Overrides:
clone in class java.lang.Object