mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 14:22:05 +01:00
Add TODOs to remove deprecated methods in 1.2.X
This commit is contained in:
parent
8ec86e6464
commit
6869c66937
5 changed files with 9 additions and 0 deletions
|
@ -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() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue