The KeyPairInformation type exposes the following members.

Constructors

  NameDescription
Public methodKeyPairInformation
Initializes a new instance of the KeyPairInformation class

Methods

  NameDescription
Public methodCheckPassword
Checks if a password for a private key is correct
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExportPrivateKey
Exports the private key part of this key pair into a file.
Public methodExportPrivateKeyBytes
Exports the private key part of this key pair as array of bytes.
Public methodExportPrivateKeyStream
Exports the private key part of this key pair as an input stream for reading.
Public methodExportPublicKey
Exports the public key part of this key pair into a file.
Public methodExportPublicKeyAsBytes
Exports the public key part of this key pair as array of bytes.
Public methodExportPublicKeyAsStream
Exports the public key part of this key pair as input stream for reading.
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 methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsExpiredOnDate
Returns will this key be expired on a given date
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyAlgorithm
Returns the name of the key encryption asymmetric algorithm.
Public propertyCreationTime
Returns when was the key created.
Public propertyEncryptionKey
Returns true if this key can be used for encryption, otherwise false.
Public propertyFingerprint
Returns key fingerprint.
Public propertyHasPrivateKey
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.
Public propertyIsExpired
Returns is this key expired (not usable any more)
Public propertyKeyId
Returns the Key ID of this key pair
Public propertyKeyIdHex
Returns a string representing the hexadecimal value of the Key ID.
Public propertyKeySize
Returns key size in bits.
Public propertyPrivateRing
Returns the Private key ring part of this Key Pair.
May be null if only public key is available.
Public propertyPrivateSubKeys
Returns an array from all private (secret) sub keys.
Public propertyPublicRing
Public key ring part of this Key Pair
Public propertyPublicSubKeys
Returns an array from all public sub keys.
Public propertyRevoked
Returns is this Key revoked (not usable any more).
Public propertySigningKey
Returns true if this key can be used for siging, otherwise false.
Public propertyTrust
Returns the trust data assigned to this key
Public propertyUserId
Returns the first User Id associated with this key.
Public propertyUserIds
Returns User Id's associated with this key.
Public propertyValidDays
Returns key validity period in days.

See Also