1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-22 19:08:00 +01:00

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