|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.network.QSslKey
public class QSslKey
The QSslKey class provides an interface for private and public keys. QSslKey provides a simple API for managing keys.
QSslSocket
, QSslCertificate
, and QSslCipher
.
Nested Class Summary |
---|
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 | |
---|---|
QSslKey()
Constructs a null key. |
|
QSslKey(QByteArray encoded,
QSsl.KeyAlgorithm algorithm)
Constructs a QSslKey by decoding the string in the byte array encoded using a specified algorithm and encoding format. |
|
QSslKey(QByteArray encoded,
QSsl.KeyAlgorithm algorithm,
QSsl.EncodingFormat format)
Constructs a QSslKey by decoding the string in the byte array encoded using a specified algorithm and encoding format. |
|
QSslKey(QByteArray encoded,
QSsl.KeyAlgorithm algorithm,
QSsl.EncodingFormat format,
QSsl.KeyType type)
Constructs a QSslKey by decoding the string in the byte array encoded using a specified algorithm and encoding format. |
|
QSslKey(QByteArray encoded,
QSsl.KeyAlgorithm algorithm,
QSsl.EncodingFormat format,
QSsl.KeyType type,
QByteArray passPhrase)
Constructs a QSslKey by decoding the string in the byte array encoded using a specified algorithm and encoding format. |
|
QSslKey(QIODevice device,
QSsl.KeyAlgorithm algorithm)
Constructs a QSslKey by reading and decoding data from a device using a specified algorithm and encoding format. |
|
QSslKey(QIODevice device,
QSsl.KeyAlgorithm algorithm,
QSsl.EncodingFormat format)
Constructs a QSslKey by reading and decoding data from a device using a specified algorithm and encoding format. |
|
QSslKey(QIODevice device,
QSsl.KeyAlgorithm algorithm,
QSsl.EncodingFormat format,
QSsl.KeyType type)
Constructs a QSslKey by reading and decoding data from a device using a specified algorithm and encoding format. |
|
QSslKey(QIODevice device,
QSsl.KeyAlgorithm algorithm,
QSsl.EncodingFormat format,
QSsl.KeyType type,
QByteArray passPhrase)
Constructs a QSslKey by reading and decoding data from a device using a specified algorithm and encoding format. |
|
QSslKey(QSslKey other)
Constructs an identical copy of other. |
Method Summary | |
---|---|
QSsl.KeyAlgorithm |
algorithm()
Returns the key algorithm. |
void |
clear()
Clears the contents of this key, making it a null key. |
QSslKey |
clone()
This method is reimplemented for internal reasons |
long |
handle()
Returns a pointer to the native key handle, if it is available; otherwise a null pointer is returned. |
boolean |
isNull()
Returns true if this is a null key; otherwise false. |
int |
length()
Returns the length of the key in bits, or -1 if the key is null. |
QByteArray |
toDer()
Returns the key in DER encoding. |
QByteArray |
toDer(QByteArray passPhrase)
Returns the key in DER encoding. |
QByteArray |
toPem()
Returns the key in PEM encoding. |
QByteArray |
toPem(QByteArray passPhrase)
Returns the key in PEM encoding. |
java.lang.String |
toString()
|
QSsl.KeyType |
type()
Returns the type of the key (i.e., PublicKey or PrivateKey). |
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 |
---|
public QSslKey()
isNull()
.
public QSslKey(QIODevice device, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format, QSsl.KeyType type)
After construction, use isNull()
to check if device provided a valid key.
public QSslKey(QIODevice device, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format)
After construction, use isNull()
to check if device provided a valid key.
public QSslKey(QIODevice device, QSsl.KeyAlgorithm algorithm)
After construction, use isNull()
to check if device provided a valid key.
public QSslKey(QIODevice device, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format, QSsl.KeyType type, QByteArray passPhrase)
After construction, use isNull()
to check if device provided a valid key.
public QSslKey(QByteArray encoded, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format, QSsl.KeyType type)
After construction, use isNull()
to check if encoded contained a valid key.
public QSslKey(QByteArray encoded, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format)
After construction, use isNull()
to check if encoded contained a valid key.
public QSslKey(QByteArray encoded, QSsl.KeyAlgorithm algorithm)
After construction, use isNull()
to check if encoded contained a valid key.
public QSslKey(QByteArray encoded, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format, QSsl.KeyType type, QByteArray passPhrase)
After construction, use isNull()
to check if encoded contained a valid key.
public QSslKey(QSslKey other)
Method Detail |
---|
public final QSsl.KeyAlgorithm algorithm()
public final void clear()
isNull()
.
public final long handle()
You can use this handle together with the native API to access extended information about the key.
Warning: 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.
public final boolean isNull()
clear()
.
public final int length()
public final QByteArray toDer()
public final QByteArray toDer(QByteArray passPhrase)
public final QByteArray toPem()
public final QByteArray toPem(QByteArray passPhrase)
public final QSsl.KeyType type()
public java.lang.String toString()
toString
in class java.lang.Object
public QSslKey clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |