The KeyStore type exposes the following members.

Constructors

  NameDescription
KeyStore
Initializes a new Key Store object.

Methods

  NameDescription
ChangePrivateKeyPasswordOverloaded.
ContainsKeyOverloaded.
DeleteKeyPairOverloaded.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
ExportKeyRingOverloaded.
ExportPrivateKeyOverloaded.
ExportPrivateKeyAsStringOverloaded.
ExportPublicKeyOverloaded.
ExportPublicKeyAsStringOverloaded.
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.)
GenerateKeyPairOverloaded.
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.
GetKeyIdForUserId
Returns the real Key ID (of type long) corresponding to this User Id.
GetKeys
Returns the key pairs stored in this OpenPGP key store.
GetKeystoreFileName
Returns this Key store instance file name (absolute or relative path)
GetKeystorePassword Obsolete.
Returns the password of this Key store instance
GetType
Gets the Type of the current instance.
(Inherited from Object.)
ImportKeyRingOverloaded.
ImportPrivateKey
Imports Private key into a custom OpenPGP key store. If the key store does not exit, it is created.
ImportPublicKey
Imports Public key into a custom OpenPGP key store. If the key store does not exit, it is created.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
onLoadKeys
Save
Saves the Key Store to disk.
SignPublicKeyOverloaded.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
DSA
Constant for DSA asymetric algorithm
Used in DH/DSS key generation
ELGAMAL
Constant for ElGamal asymetric algorithm
Used in DH/DSS key generation
keys
RSA
Constant for RSA asymetric algorithm

Properties

  NameDescription
AutoSave
Property that indicates should the KeyStore backing file be auto saved after each operation that changes its state.
BackupOnSave
Property that indicates should the old KeyStore backing file be copied automatically in a file with extension .bak right before the save operation
FileName
File name where this KeyStore object is stored.
HexKeyIds
Returns array of Hexadecimal string representation of the key Id's for the keys contained in this KeyStore instance.

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.
Password
Password of this KeyStore
UserIds
Returns array of Strings representing all user Id's contained in this KeyStore instance.

See Also