The KeyPairInformation type exposes the following members.

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