The InMemoryKeyStore type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| InMemoryKeyStore |
Creates an empty In Memory KeyStore
|
Methods
| Name | Description | |
|---|---|---|
| ChangePrivateKeyPassword(Int64, String, String) |
Changes private key password.
(Inherited from KeyStore.)This method is equivalent to the GnuPG commands: gpg --edit-key [userId] Command>passwd | |
| ChangePrivateKeyPassword(String, String, String) |
Changes private key password.
(Inherited from KeyStore.)If more than one key pairs exist with the supplied userId, only the first one is affected. This method is equivalent to the GnuPG commands: gpg --edit-key [userId] Command>passwd | |
| CheckPassword |
Checks if a password for a key store file is correct
(Inherited from KeyStore.) | |
| ContainsKey(Int64) |
Checks is there a key with the specified Key ID in this Key Store
(Inherited from KeyStore.) | |
| ContainsKey(String) |
Checks is there a key with the specified User Id in this Key Store
(Inherited from KeyStore.) | |
| ContainsPrivateKey(Int64) |
Checks is there a private key with the specified Key ID in this Key Store
(Inherited from KeyStore.) | |
| ContainsPrivateKey(String) |
Checks is there a private key with the specified User Id in this Key Store
(Inherited from KeyStore.) | |
| ContainsPublicKey(Int64) |
Checks is there a public key with the specified Key ID in this Key Store
(Inherited from KeyStore.) | |
| ContainsPublicKey(String) |
Checks is there a public key with the specified User Id in this Key Store
(Inherited from KeyStore.) | |
| DeleteKeyPair(Int64) |
Deletes the key pair (public and private key) from this key store that have the specified keyId.
(Inherited from KeyStore.) | |
| DeleteKeyPair(String) | Deletes the first key pair (public and private key) from this key store that has the specified userId. (Inherited from KeyStore.) | |
| DeletePrivateKey(Int64) |
Deletes a private key with the specified key Id from this KeyStore.
(Inherited from KeyStore.) | |
| DeletePrivateKey(String) | Deletes the first private key from this key store that has the specified User Id. (Inherited from KeyStore.) | |
| DeletePublicKey(Int64) |
Deletes the public key with the specified key Id from this key store.
(Inherited from KeyStore.) | |
| DeletePublicKey(String) | Deletes the first public key pair from this key store that has the specified User Id. (Inherited from KeyStore.) | |
| Equals | (Inherited from Object.) | |
| ExportKeyRing(String, Int64) | Exports Key ring (both public and private key) located in this Key store in one file. (Inherited from KeyStore.) | |
| ExportKeyRing(String, String) | Exports a key ring (the public and private key combined) located in this key store in one file. (Inherited from KeyStore.) | |
| ExportKeyRing(String, Int64, Boolean) | Exports a key ring (the public and private key combined) located in this key store in one file. (Inherited from KeyStore.) | |
| ExportKeyRing(String, String, Boolean) | Exports a key ring (the public and private key combined) located in this key store in one file. (Inherited from KeyStore.) | |
| ExportPrivateKey(String, Int64, Boolean) | Exports private key from this OpenPGP key store into a file. (Inherited from KeyStore.) | |
| ExportPrivateKey(String, String, Boolean) | Exports private key from this OpenPGP key store into a file. (Inherited from KeyStore.) | |
| ExportPrivateKeyAsString(Int64) | Exports private key from this OpenPGP key store as a String in ASCII armored format. (Inherited from KeyStore.) | |
| ExportPrivateKeyAsString(String) | Exports private key from this OpenPGP key store as a String in ASCII armored format. (Inherited from KeyStore.) | |
| ExportPrivateKeyBytes(Int64) | Exports private key from this OpenPGP key store as a byte array. (Inherited from KeyStore.) | |
| ExportPrivateKeyBytes(String) | Exports private key from this OpenPGP key store as a byte array (Inherited from KeyStore.) | |
| ExportPrivateKeyStream(Int64) | Exports private key from this OpenPGP key store as an input stream for reading (Inherited from KeyStore.) | |
| ExportPrivateKeyStream(String) | Exports private key from this OpenPGP key store as an input stream for reading (Inherited from KeyStore.) | |
| ExportPublicKey(String, Int64, Boolean) | Exports public key from this OpenPGP key store into a file. (Inherited from KeyStore.) | |
| ExportPublicKey(String, String, Boolean) | Exports public key from this OpenPGP key store, into file. (Inherited from KeyStore.) | |
| ExportPublicKeyAsString(Int64) | Exports Public key from this OpenPGP key store as a String in ASCII armored format. (Inherited from KeyStore.) | |
| ExportPublicKeyAsString(String) | Exports Public key from this OpenPGP key store as a String in ASCII armored format. (Inherited from KeyStore.) | |
| ExportPublicKeyStream(Int64) | Exports public key from this OpenPGP key store as an input stream for reading (Inherited from KeyStore.) | |
| ExportPublicKeyStream(String) | Exports public key from this OpenPGP key store as an input stream for reading (Inherited from KeyStore.) | |
| 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.) | |
| GenerateKeyPair(Int32, String, String) |
Generates OpenPGP Key pair with RSA encryption and predefined values for compression, hashing and cypher
like the ones generated with PGP Desktop(tm) wizard.
(Inherited from KeyStore.) | |
| GenerateKeyPair(Int32, String, KeyAlgorithm, String, array<CompressionAlgorithm>[]()[][], array<HashAlgorithm>[]()[][], array<CypherAlgorithm>[]()[][]) |
Generates OpenPGP Key pair (public and private key) with no expiration date.
(Inherited from KeyStore.)The newly generated key is stored in this KeyStore instance. | |
| GenerateKeyPair(Int32, String, String, String, String, String, String) |
Generates OpenPGP Key pair (public and private key).
(Inherited from KeyStore.)The newly generated key is stored in this KeyStore instance. | |
| GenerateKeyPair(Int32, String, KeyAlgorithm, String, array<CompressionAlgorithm>[]()[][], array<HashAlgorithm>[]()[][], array<CypherAlgorithm>[]()[][], DateTime) |
Generates PGP Key pair (public and private key) that expires on given date.
(Inherited from KeyStore.)The newly generated key is stored in this KeyStore instance. | |
| GenerateKeyPair(Int32, String, String, String, String, String, String, DateTime) |
Generates PGP Key pair (public and private key).
(Inherited from KeyStore.)The newly generated key is stored in this KeyStore instance. | |
| GenerateKeyPair(Int32, String, String, String, String, String, String, Int64) |
Generates PGP Key pair (public and private key).
(Inherited from KeyStore.)The newly generated key is stored in this KeyStore instance. | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetKeyIdForKeyIdHex |
Returns the real Key ID (of type long) corresponding to this Hexadecimal Key Id.
(Inherited from KeyStore.) | |
| GetKeyIdForUserId |
Returns the real Key ID (of type long) corresponding to this User Id.
(Inherited from KeyStore.) | |
| GetKeys |
Returns the key pairs stored in this OpenPGP key store.
(Inherited from KeyStore.) | |
| GetPublicKeysData |
Returns the public keys data contained in this KeyStore (Inherited from KeyStore.) | |
| GetPublicKeysWithUserId |
Returns the public keys data with the specified User Id contained in this KeyStore (Inherited from KeyStore.) | |
| GetPublicKeyWithKeyId |
Returns the public key data with the specified Key Id contained in this IKeyStore (Inherited from KeyStore.) | |
| GetSecretKeysData |
Returns the secret keys data contained in this KeyStore (Inherited from KeyStore.) | |
| GetSecretKeysWithUserId |
Returns the secret keys data with the specified User Id contained in this IKeyStore (Inherited from KeyStore.) | |
| GetSecretKeyWithKeyId |
Returns the secret key data with the specified Key Id contained in this IKeyStore (Inherited from KeyStore.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ImportKeyRing(FileInfo) |
Imports OpenPGP key ring in this key store.
(Inherited from KeyStore.) | |
| ImportKeyRing(String) |
Imports OpenPGP key ring in this KeyStore instance.
(Inherited from KeyStore.) | |
| ImportPrivateKey(String) |
Imports and OpenPGP private key into a custom OpenPGP key store.
(Inherited from KeyStore.) | |
| ImportPrivateKey(String, String) |
Imports and OpenPGP private key into a custom OpenPGP key store.
(Inherited from KeyStore.) | |
| ImportPublicKey |
Imports Public key into a custom OpenPGP key store. If the key store does not exist, it is created.
(Inherited from KeyStore.) | |
| isTrusted(Int64) |
Checks is a public key trusted in this Key store.
(Inherited from KeyStore.) | |
| isTrusted(String) |
Checks is a public key trusted in this Key store.
(Inherited from KeyStore.) | |
| LoadFromStream |
Loads the keystore data from a stream, where it has been stored previously
(Inherited from KeyStore.) | |
| loadKeyFile |
Helper method for importing external public or private keys
(Inherited from KeyStore.) | |
| LoadPublicKeysData |
Loads public keys data into this IKeyStore
from a byte array obtained from an OpenPGP public key ring
(Inherited from KeyStore.) | |
| LoadSecretKeysData |
Loads secret keys data into this IKeyStore
from a byte array obtained from an OpenPGP secret key ring
(Inherited from KeyStore.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Save | Saves the Key Store to disk. (Inherited from KeyStore.) | |
| SaveToStream |
Saves the keystore data to a stream
(Inherited from KeyStore.) | |
| SetTrust(Int64, TrustLevel) |
Sets an internal trust value for a public key, valid only in this KeyStore instance
(Inherited from KeyStore.) | |
| SetTrust(String, TrustLevel) |
Sets an internal trust value for a public key, valid only in this KeyStore instance
(Inherited from KeyStore.) | |
| SignPublicKey(Int64, Int64, String) |
Signs a public key with a specified private key.
(Inherited from KeyStore.) | |
| SignPublicKey(String, String, String) |
Signs a public key with a private key.
(Inherited from KeyStore.) | |
| SignPublicKeyAsTrustedIntroducer(Int64, Int64, String) |
Signs a public key as trusted introducer
(Inherited from KeyStore.) | |
| SignPublicKeyAsTrustedIntroducer(String, Int64, String) |
Signs a public key as trusted introducer
(Inherited from KeyStore.) | |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| keys |
List of keys contained in this KeyStore. Pairs of (keyId, KeyPairInformation)
(Inherited from KeyStore.) |
Properties
| Name | Description | |
|---|---|---|
| AutoSave |
Property that indicates should the KeyStore backing file be auto saved
after each operation that changes its state.
(Inherited from KeyStore.) | |
| BackupOnSave |
Property that indicates should the old KeyStore backing file be
copied automatically in a file with extension .bak right before the save operation
(Inherited from KeyStore.) | |
| FileName |
File name where this KeyStore object is stored.
(Inherited from KeyStore.) | |
| HexKeyIds |
Returns array of Hexadecimal string representation of the key Id's for the keys contained in this KeyStore instance.
(Inherited from KeyStore.)This hexadecimal value is composed of the lower four bytes of the real key Id (8 bytes) and is the same as the one displayed by PGP (r) and GnuPG. | |
| IsInMemory |
Indicates is this KeyStore instance in-memory (True)
or file based (False)
(Inherited from KeyStore.) | |
| PartialMatchUserIds |
Sets/Gets is searching keys performed on whole User Id or only on part of it.
(Inherited from KeyStore.) | |
| Password |
Password of this KeyStore
(Inherited from KeyStore.) | |
| UserIds |
Returns array of Strings representing all user Id's contained in this KeyStore instance.
(Inherited from KeyStore.) |