The RevocationLib type exposes the following members.

Constructors

  NameDescription
Public methodRevocationLib
Constructor that initializes the revocation library class.

Methods

  NameDescription
Public methodAssignDesignatedRevoker(String, String, String, String)
Authorizes the specified key as a designated revoker for this key.

This method writes changes in the file publicKeyFileName.

Equivalent GPG command:
gpg --edit-key [keyId]
addrevoker [revokerKeyId]
Public methodAssignDesignatedRevoker(KeyStore, Int64, String, Int64)
Authorizes the specified key as a designated revoker for this key.

Note that the corresponding private key of the key that authorizes must also be in this KeyStore.

Equivalent GPG command:
gpg --edit-key [keyId]
addrevoker [revokerKeyId]
Public methodAssignDesignatedRevoker(KeyStore, String, String, String)
Authorizes the specified key as a designated revoker for this key.

Note that the corresponding private key of the key that authorizes must also be in this KeyStore.

Equivalent GPG command:
gpg --edit-key [userId]
addrevoker [revokerKeyId]
Public methodCreateRevocationCertificateInFile(String, String, Byte, String, String)
Creates a key revocation certificate for a given OpenPGP key file and stores it in a file.

Key revocation certificates are especially useful if we have forgotten the pass phrase to our private key and we need some way to "disable" or revoke that key.

Equivalent GPG command:
gpg --gen-revoke [UserId] --output [outputFileName]
Public methodCreateRevocationCertificateInFile(KeyStore, Int64, String, Byte, String, String)
Creates a key revocation certificate for a given OpenPGP key located in a KeyStore and stores it in a file.

Key revocation certificates are especially useful if we have forgotten the pass phrase to our private key and we need some way to "disable" or revoke that key.

Equivalent GPG command:
gpg --gen-revoke [keyId] --output [outputFileName]
Public methodCreateRevocationCertificateInFile(KeyStore, String, String, Byte, String, String)
Creates a key revocation certificate for a given OpenPGP key located in a KeyStore and stores it in a file.

Key revocation certificates are especially useful if we have forgotten the pass phrase to our private key and we need some way to "disable" or revoke that key.

Equivalent GPG command:
gpg --gen-revoke [userId] --output [outputFileName]
Public methodCreateRevocationCertificateText(String, String, Byte, String)
Creates a revocation certificate in ASCII armored string format for a given OpenPGP key.

Key revocation certificates are especially useful if we have forgotten the pass phrase to our private key and we need some way to "disable" or revoke that key.

Equivalent GPG command:
gpg --gen-revoke [UserId]
Public methodCreateRevocationCertificateText(KeyStore, Int64, String, Byte, String)
Creates a revocation certificate in ASCII armored string format for a given OpenPGP key.

Key revocation certificates are especially useful if we have forgotten the pass phrase to our private key and we need some way to "disable" or revoke that key.

Equivalent GPG command:
gpg --gen-revoke [keyId]
Public methodCreateRevocationCertificateText(KeyStore, String, String, Byte, String)
Creates a revocation certificate in ASCII armored string format for a given OpenPGP key.

Key revocation certificates are especially useful if we have forgotten the pass phrase to our private key and we need some way to "disable" or revoke that key.

Equivalent GPG command:
gpg --gen-revoke [UserId]
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
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.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRevokeKey(String, String, String, Byte, String)
Revokes a public key.
Public methodRevokeKey(KeyStore, Int64, String, Byte, String)
Revokes a public key or sub key from a KeyStore.
Note: The corresponding private key of this key must also be in the same KeyStore object.

Equivalent GPG command:
gpg --edit-key [userId]
revkey
Public methodRevokeKey(KeyStore, String, String, Byte, String)
Revokes a public key or sub key from a KeyStore.
Note: The corresponding private key of this key must also be in the same KeyStore object.

Equivalent GPG command:
gpg --edit-key [userId]
revkey
Public methodRevokeKeyWithDesignatedRevoker(String, String, String, Byte, String)
Revokes an OpenPGP public key with a designated revoker private key file.
Public methodRevokeKeyWithDesignatedRevoker(KeyStore, Int64, Int64, String, Byte, String)
Revokes an OpenPGP public key located in a KeyStore with a designated revoker.
Note: the designated revoker private key must also exist in the same KeyStore object.

Equivalent GPG command:
gpg --desig-revoke [keyId]
Public methodRevokeKeyWithDesignatedRevoker(KeyStore, String, String, String, Byte, String)
Revokes an OpenPGP public key located in a KeyStore with a designated revoker.
Note: the designated revoker private key must also exist in the same KeyStore object.

Equivalent GPG command:
gpg --desig-revoke [userId]
Public methodRevokeKeyWithRevocationCertificateFile(String, String)
Revokes a key or subkey from an OpenPGP key ring file (*.asc, *.pkr) using a revocation certificate file.
Public methodRevokeKeyWithRevocationCertificateFile(KeyStore, String)
Revokes a key or subkey from an OpenPGP key ring file (*.asc, *.pkr) using a revocation certificate file.

Equivalent GPG command:
gpg --import [certificateFileName]
Public methodRevokeKeyWithRevocationCertificateText(String, String)
Revokes a key or subkey from an OpenPGP key ring file (*.asc, *.pkr) using a revocation certificate supplied as text.
Public methodRevokeKeyWithRevocationCertificateText(KeyStore, String)
Revokes a key or subkey located in an OpenPGP KeyStore using a revocation certificate supplied as text.

Equivalent GPG command:
gpg --import [certificateFile]
Public methodRevokeUserIdSignature(KeyStore, String, String, Byte, String)
Revokes a User Id signature binding from an OpenPGP public key located in a KeyStore
Note: the corresponding private key must also exist in this KeyStore in order the signature to be produced.

Equivalent GPG command:
gpg --edit-key [userId]
Public methodRevokeUserIdSignature(String, String, String, String, Byte, String)
Revokes a User Id signature binding from an OpenPGP public key file.
One reason to do this is if this User Id is no longer connected to this key, for example have left the company.
Public methodRevokeUserIdSignature(KeyStore, Int64, String, String, Byte, String)
Revokes a User Id signature binding from an OpenPGP public key located in a KeyStore
Note: the corresponding private key must also exist in this KeyStore in order the signature to be produced.

Equivalent GPG command:
gpg --edit-key [keyId]
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Public fieldStatic memberREASON_KEY_COMPROMISED
Revocation code: Key has been compromised
Public fieldStatic memberREASON_KEY_NO_LONGER_USED
Revocation code: Key is no longer used
Public fieldStatic memberREASON_KEY_SUPERSEDED
Revocation code: Key is superseded
Public fieldStatic memberREASON_NO_REASON
Revocation code: No reason specified
Public fieldStatic memberREASON_USER_NO_LONGER_USED
Revocation code: User Id is no longer used

See Also