Method | Description | |
---|---|---|
AddCertification ( |
Add a revocation or some other key certification to a key.
|
|
AddCertification ( |
Add a certification for the given UserAttributeSubpackets to the given public key.
|
|
AddCertification ( |
Add a certification for an id to the given public key.
|
|
Encode ( Stream outStr ) : void | ||
GetEncoded ( ) : byte[] | ||
GetFingerprint ( ) : byte[] |
The fingerprint of the key
|
|
GetKey ( ) : |
The public key contained in the object.
|
|
GetSignatures ( ) : IEnumerable |
Allows enumeration of all signatures/certifications associated with this key.
|
|
GetSignaturesForId ( string id ) : IEnumerable |
Allows enumeration of any signatures associated with the passed in id.
|
|
GetSignaturesForUserAttribute ( |
Allows enumeration of signatures associated with the passed in user attributes.
|
|
GetSignaturesOfType ( int signatureType ) : IEnumerable |
Allows enumeration of signatures of the passed in type that are on this key.
|
|
GetTrustData ( ) : byte[] |
Return the trust data associated with the public key, if present.
|
|
GetUserAttributes ( ) : IEnumerable |
Allows enumeration of any user attribute vectors associated with the key.
|
|
GetUserIds ( ) : IEnumerable |
Allows enumeration of any user IDs associated with the key.
|
|
GetValidSeconds ( ) : long |
The number of valid seconds from creation time - zero means no expiry.
|
|
IsRevoked ( ) : bool |
Check whether this (sub)key has a revocation signature on it.
|
|
PgpPublicKey ( PublicKeyAlgorithmTag algorithm, |
Create a PgpPublicKey from the passed in lightweight one. Note: the time passed in affects the value of the key's keyId, so you probably only want to do this once for a lightweight key, or make sure you keep track of the time you used. |
|
RemoveCertification ( |
Remove a certification from the key.
|
|
RemoveCertification ( |
Remove any certifications associated with a user attribute subpacket on a key.
|
|
RemoveCertification ( |
Remove a certification associated with a given user attributes on a key.
|
|
RemoveCertification ( |
Remove any certifications associated with a given ID on a key.
|
|
RemoveCertification ( |
Remove a certification associated with a given ID on a key.
|
Method | Description | |
---|---|---|
AddCert ( |
||
GetExpirationTimeFromSig ( bool selfSigned, int signatureType ) : long | ||
Init ( ) : void | ||
PgpPublicKey ( |
Copy constructor.
|
|
PgpPublicKey ( |
||
PgpPublicKey ( PublicKeyPacket publicPk, |
||
PgpPublicKey ( PublicKeyPacket publicPk, TrustPacket trustPk, |
Constructor for a sub-key.
|
|
PgpPublicKey ( PublicKeyPacket publicPk, TrustPacket trustPk, |
||
RemoveCert ( |
||
RemoveCert ( |
public static AddCertification ( |
||
key | The key the revocation is to be added to. | |
certification | The key signature to be added. | |
return |
public static AddCertification ( |
||
key | The key the certification is to be added to. | |
userAttributes | The attributes the certification is associated with. | |
certification | The new certification. | |
return |
public static AddCertification ( |
||
key | The key the certification is to be added to. | |
id | string | The ID the certification is associated with. |
certification | The new certification. | |
return |
public GetKey ( ) : |
||
return |
public GetSignaturesForId ( string id ) : IEnumerable | ||
id | string | The ID to be matched. |
return | IEnumerable |
public GetSignaturesForUserAttribute ( |
||
userAttributes | The vector of user attributes to be matched. | |
return | IEnumerable |
public GetSignaturesOfType ( int signatureType ) : IEnumerable | ||
signatureType | int | The type of the signature to be returned. |
return | IEnumerable |
public PgpPublicKey ( PublicKeyAlgorithmTag algorithm, |
||
algorithm | PublicKeyAlgorithmTag | Asymmetric algorithm type representing the public key. |
pubKey | Actual public key to associate. | |
time | System.DateTime | Date of creation. |
return | System |
public static RemoveCertification ( |
||
key | The key the certifications are to be removed from. | |
certification | The certfication to be removed. | |
return |
public static RemoveCertification ( |
||
key | The key the certifications are to be removed from. | |
userAttributes | The attributes to be removed. | |
return |
public static RemoveCertification ( |
||
key | The key the certifications are to be removed from. | |
userAttributes | The user attributes that the certfication is to be removed from. | |
certification | The certification to be removed. | |
return |
public static RemoveCertification ( |
||
key | The key the certifications are to be removed from. | |
id | string | The ID that is to be removed. |
return |
public static RemoveCertification ( |
||
key | The key the certifications are to be removed from. | |
id | string | The ID that the certfication is to be removed from. |
certification | The certfication to be removed. | |
return |