The KeyPairInformation type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| KeyPairInformation | Initializes a new instance of the KeyPairInformation class |
Methods
| Name | Description | |
|---|---|---|
| CheckPassword |
Checks if a password for a private key is correct
| |
| Equals | (Inherited from Object.) | |
| ExportPrivateKey |
Exports the private key part of this key pair into a file.
| |
| ExportPrivateKeyBytes |
Exports the private key part of this key pair as array of bytes.
| |
| ExportPrivateKeyStream |
Exports the private key part of this key pair as an input stream for reading.
| |
| ExportPublicKey |
Exports the public key part of this key pair into a file.
| |
| ExportPublicKeyAsBytes |
Exports the public key part of this key pair as array of bytes.
| |
| ExportPublicKeyAsStream |
Exports the public key part of this key pair as input stream for reading.
| |
| 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.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsExpiredOnDate |
Returns will this key be expired on a given date
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| Algorithm |
Returns the name of the key encryption asymmetric algorithm.
| |
| CreationTime |
Returns when was the key created.
| |
| EncryptionKey |
Returns true if this key can be used for encryption, otherwise false.
| |
| Fingerprint |
Returns key fingerprint.
| |
| HasPrivateKey |
Returns is there a corresponding private key for this key pair entry in this KeyStore instance
For our recipients this will be false because we have only their public keys in most cases. | |
| IsExpired |
Returns is this key expired (not usable any more)
| |
| KeyId |
Returns the Key ID of this key pair
| |
| KeyIdHex |
Returns a string representing the hexadecimal value of the Key ID.
| |
| KeySize |
Returns key size in bits.
| |
| PrivateRing |
Returns the Private key ring part of this Key Pair.
May be null if only public key is available. | |
| PrivateSubKeys |
Returns an array from all private (secret) sub keys.
| |
| PublicRing |
Public key ring part of this Key Pair
| |
| PublicSubKeys |
Returns an array from all public sub keys.
| |
| Revoked |
Returns is this Key revoked (not usable any more).
| |
| SigningKey |
Returns true if this key can be used for siging, otherwise false.
| |
| Trust |
Returns the trust data assigned to this key
| |
| UserId |
Returns the first User Id associated with this key.
| |
| UserIds |
Returns User Id's associated with this key.
| |
| ValidDays |
Returns key validity period in days.
|