The PrivateKeyInfo type exposes the following members.

Constructors

  NameDescription
Public methodPrivateKeyInfo()()()()
Creates a new instance of PrivateKeyInfo. Use the Load(Stream, String) method to load a private key.
Public methodPrivateKeyInfo(DSAParameters)
Creates a new instance of PrivateKeyInfo based on the specified DSA parameters.
Public methodPrivateKeyInfo(RSAParameters)
Creates a new instance of PrivateKeyInfo based on the specified RSA parameters.

Methods

  NameDescription
Public methodEncode
Gets ASN.1 encoded form of this PrivateKeyInfo object.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
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 memberGenerate(KeyAlgorithm)
Generates a private key using the specified algorithm and default key size.
Public methodStatic memberGenerate(KeyAlgorithm, Int32)
Generates a private key using the specified algorithm and key size.
Public methodGetDSAParameters
Gets the DSA parameters for a DSA key. May only be used for DSA private keys.
Public methodGetHashCode
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 methodGetPrivateKey Obsolete.
Public methodGetPublicKey
Gets a public key corresponding to the private key.
Public methodGetRSAParameters
Gets the RSA parameters for a RSA key. May only be used for RSA private keys.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad(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 methodLoad(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 methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSave(Stream, String, ObjectIdentifier)
Saves the private key into the supplied stream in Base64-encoded PKCS #8 format.
Public methodSave(Stream, String, PrivateKeyFormat)
Saves the private key into the supplied stream in the specified format.
Public methodSave(String, String, PrivateKeyFormat)
Saves the private key into the supplied stream in the specified format.
Public methodToBytes
Gets the raw form of the private key.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyComment
Gets or ets the key comment. The comment is used while saving in some formats.
Public propertyKeyAlgorithm
Gets the key algorithm identifier.

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodIDeserializationCallback..::..OnDeserialization (Inherited from PkcsBase.)

See Also