Qyoto  4.0.6
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtNetwork.QSslKey Class Reference

The QSslKey class provides an interface for private and public keys. More...

Inheritance diagram for QtNetwork.QSslKey:
Collaboration diagram for QtNetwork.QSslKey:

Public Member Functions

override bool Equals (object o)
 
override int GetHashCode ()
 
 QSslKey ()
 
 
 QSslKey (QSslKey other)
 
 
 QSslKey (QByteArray encoded, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format=QSsl.EncodingFormat.Pem, QSsl.KeyType type=QSsl.KeyType.PrivateKey)
 
 
 QSslKey (QIODevice device, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format=QSsl.EncodingFormat.Pem, QSsl.KeyType type=QSsl.KeyType.PrivateKey)
 
 
 QSslKey (QByteArray encoded, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format, QSsl.KeyType type, QByteArray passPhrase)
 
 
 QSslKey (QIODevice device, QSsl.KeyAlgorithm algorithm, QSsl.EncodingFormat format, QSsl.KeyType type, QByteArray passPhrase)
 
 
virtual void CreateProxy ()
 
new void Clear ()
 
 
new QByteArray ToDer ()
 
 
new QByteArray ToDer (QByteArray passPhrase)
 
 
new QByteArray ToPem ()
 
 
new QByteArray ToPem (QByteArray passPhrase)
 
 
new void Dispose ()
 

Static Public Member Functions

static bool operator!= (QSslKey one, QSslKey key)
 
 
static bool operator== (QSslKey one, QSslKey key)
 
 

Protected Member Functions

 QSslKey (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

QSsl.KeyAlgorithm Algorithm [get]
 
 
bool IsNull [get]
 
 
int Length [get]
 
 
QSsl.KeyType Type [get]
 
 
virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QSslKey class provides an interface for private and public keys.

QSslKey provides a simple API for managing keys.

See also QSslSocket, QSslCertificate, and QSslCipher.

Constructor & Destructor Documentation

QtNetwork.QSslKey.QSslKey ( System.Type  dummy)
protected
QtNetwork.QSslKey.QSslKey ( )

Constructs a null key.

See also isNull().

QtNetwork.QSslKey.QSslKey ( QSslKey  other)

Constructs an identical copy of other.

QtNetwork.QSslKey.QSslKey ( QByteArray  encoded,
QSsl.KeyAlgorithm  algorithm,
QSsl.EncodingFormat  format = QSsl.EncodingFormat.Pem,
QSsl.KeyType  type = QSsl.KeyType.PrivateKey 
)

Constructs a QSslKey by decoding the string in the byte array encoded using a specified algorithm and encoding format. If the encoded key is encrypted, passPhrase is used to decrypt it. type specifies whether the key is public or private.

After construction, use isNull() to check if encoded contained a valid key.

QtNetwork.QSslKey.QSslKey ( QIODevice  device,
QSsl.KeyAlgorithm  algorithm,
QSsl.EncodingFormat  format = QSsl.EncodingFormat.Pem,
QSsl.KeyType  type = QSsl.KeyType.PrivateKey 
)

Constructs a QSslKey by reading and decoding data from a device using a specified algorithm and encoding format. If the encoded key is encrypted, passPhrase is used to decrypt it. type specifies whether the key is public or private.

After construction, use isNull() to check if device provided a valid key.

QtNetwork.QSslKey.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. If the encoded key is encrypted, passPhrase is used to decrypt it. type specifies whether the key is public or private.

After construction, use isNull() to check if encoded contained a valid key.

QtNetwork.QSslKey.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. If the encoded key is encrypted, passPhrase is used to decrypt it. type specifies whether the key is public or private.

After construction, use isNull() to check if device provided a valid key.

Member Function Documentation

new void QtNetwork.QSslKey.Clear ( )

Clears the contents of this key, making it a null key.

See also isNull().

virtual void QtNetwork.QSslKey.CreateProxy ( )
virtual
new void QtNetwork.QSslKey.Dispose ( )
override bool QtNetwork.QSslKey.Equals ( object  o)
override int QtNetwork.QSslKey.GetHashCode ( )
static bool QtNetwork.QSslKey.operator!= ( QSslKey  one,
QSslKey  key 
)
static

Returns true if this key is not equal to key other; otherwise returns false.

static bool QtNetwork.QSslKey.operator== ( QSslKey  one,
QSslKey  key 
)
static

Returns true if this key is equal to other; otherwise returns false.

new QByteArray QtNetwork.QSslKey.ToDer ( )

Returns the key in DER encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.

new QByteArray QtNetwork.QSslKey.ToDer ( QByteArray  passPhrase)

Returns the key in DER encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.

new QByteArray QtNetwork.QSslKey.ToPem ( )

Returns the key in PEM encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.

new QByteArray QtNetwork.QSslKey.ToPem ( QByteArray  passPhrase)

Returns the key in PEM encoding. The result is encrypted with passPhrase if the key is a private key and passPhrase is non-empty.

Member Data Documentation

SmokeInvocation QtNetwork.QSslKey.interceptor
protected

Property Documentation

QSsl.KeyAlgorithm QtNetwork.QSslKey.Algorithm
get

Returns the key algorithm.

bool QtNetwork.QSslKey.IsNull
get

Returns true if this is a null key; otherwise false.

See also clear().

int QtNetwork.QSslKey.Length
get

Returns the length of the key in bits, or -1 if the key is null.

virtual System.IntPtr QtNetwork.QSslKey.SmokeObject
getset
QSsl.KeyType QtNetwork.QSslKey.Type
get

Returns the type of the key (i.e., PublicKey or PrivateKey).