Add TODOs to remove deprecated methods in 1.2.X

This commit is contained in:
Paul Schaub 2022-04-02 17:12:12 +02:00
parent 8ec86e6464
commit 6869c66937
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
5 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,8 @@ public final class EncryptionResult {
* @return symmetric encryption algorithm
*
* @deprecated use {@link #getEncryptionAlgorithm()} instead.
*
* TODO: Remove in 1.2.X
*/
@Deprecated
public SymmetricKeyAlgorithm getSymmetricKeyAlgorithm() {

View File

@ -77,6 +77,8 @@ public interface SecretKeyRingProtector {
* @param keys key ring
* @return protector
* @deprecated use {@link #unlockEachKeyWith(Passphrase, PGPSecretKeyRing)} instead.
*
* TODO: Remove in 1.2.X
*/
@Deprecated
static SecretKeyRingProtector unlockAllKeysWith(@Nonnull Passphrase passphrase, @Nonnull PGPSecretKeyRing keys) {

View File

@ -385,6 +385,7 @@ public final class KeyRingUtils {
// TODO: Replace with PGPSecretKeyRing.insertOrReplacePublicKey() once available
// Right now replacePublicKeys looses extra public keys.
// See https://github.com/bcgit/bc-java/pull/1068 for a possible fix
// Fix once BC 171 gets released.
secretKeys = PGPSecretKeyRing.replacePublicKeys(secretKeys, publicKeys);
return (T) secretKeys;
}

View File

@ -63,6 +63,8 @@ public class DetachedSignatureCheck {
*
* @return fingerprint of the signing key
* @deprecated use {@link #getSigningKeyIdentifier()} instead.
*
* TODO: Remove in 1.2.X
*/
@Deprecated
public OpenPgpFingerprint getFingerprint() {

View File

@ -280,6 +280,8 @@ public final class ArmorUtils {
* @return armored output stream
*
* @deprecated use {@link #toAsciiArmoredStream(PGPKeyRing, OutputStream)} instead
*
* TODO: Remove in 1.2.X
*/
@Deprecated
@Nonnull