The PublicKeyInfo type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Encode |
Gets ASN.1 encoded form of this PublicKeyInfo object.
| |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetDSAParameters |
Gets the DSA parameters for a DSA public key. May only be used for DSA public keys.
| |
| GetHashCode | 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.) | |
| GetKeyAlgorithm |
Returns the key algorithm.
| |
| GetKeySize |
Returns the size of the key in bits.
| |
| GetPublicKey | Obsolete. | |
| GetRSAParameters |
Gets the RSA parameters for a RSA public key. May only be used for RSA public keys.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Load(Stream) |
Loads a PKCS #8 public key from a stream.
Upon successful decoding, information can be retrieved using PublicKeyInfo
methods and properties.
| |
| Load(String) |
Loads a PKCS #8 public key from a file.
Upon successful decoding, information can be retrieved using PublicKeyInfo
methods and properties.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Save(Stream) |
Saves the public key into the supplied stream in Base64-encoded PKCS #8 format.
| |
| Save(String) |
Saves the public key into the supplied stream in Base64-encoded PKCS #8 format.
| |
| ToBytes |
Gets the raw form of the public key.
| |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |