The PrivateKeyInfo type exposes the following members.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkEncode
Gets ASN.1 encoded form of this PrivateKeyInfo object.
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkGenerate(KeyAlgorithm)
Generates a private key using the specified algorithm and default key size.
Public methodStatic memberSupported by the .NET Compact FrameworkGenerate(KeyAlgorithm, Int32)
Generates a private key using the specified algorithm and key size.
Public methodSupported by the .NET Compact FrameworkGetDSAParameters
Gets the DSA parameters for a DSA key. May only be used for DSA private keys.
Public methodSupported by the .NET Compact FrameworkGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetPrivateKey Obsolete.
Public methodSupported by the .NET Compact FrameworkGetPublicKey
Gets a public key corresponding to the private key.
Public methodSupported by the .NET Compact FrameworkGetRSAParameters
Gets the RSA parameters for a RSA key. May only be used for RSA private keys.
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkLoad(Stream, String)
Loads a PKCS #8, PuTTY or SSLeay (OpenSSL/OpenSSH) format private key from a stream. Upon successful decoding, information can be retrieved using PrivateKeyInfo methods and properties.
Public methodSupported by the .NET Compact FrameworkLoad(String, String)
Loads a PKCS #8, PuTTY or SSLeay (OpenSSL/OpenSSH) format private key from a stream. Upon successful decoding, information can be retrieved using PrivateKeyInfo methods and properties.
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSave(Stream, String, ObjectIdentifier)
Saves the private key into the supplied stream in Base64-encoded PKCS #8 format.
Public methodSupported by the .NET Compact FrameworkSave(Stream, String, PrivateKeyFormat)
Saves the private key into the supplied stream in the specified format.
Public methodSupported by the .NET Compact FrameworkSave(String, String, PrivateKeyFormat)
Saves the private key into the supplied stream in the specified format.
Public methodSupported by the .NET Compact FrameworkToBytes
Gets the raw form of the private key.
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also