Description
-
Creates and returns an XML string representation of the current
RSA/DSA key.
Property type
-
A String value.
Syntax
-
object.ToXmlString(KeyType, IncludePrivate)
The ToXmlString Property syntax has these parts:
| object |
An expression
evaluating to an object of type Keys. |
| KeyType |
Required. A SSHKeyTypes
enumeration, as described in settings. Type of the key
(RSA/DSA). |
| IncludePrivate |
Required. A Boolean value that
determine if private key is also exported. If set to False
then only public part is exported. |
Settings
-
The settings for KeyType are:
 |
RSAkey |
0 |
Exports RSA key. |
 |
DSAkey |
1 |
Exports DSA key. |
Remarks
-
This property will return XML string expression of public or
private RSA/DSA key, so it can be reused by MS NET framework
directly using FromXmlString and ToXmlString methods.
|