Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pg/src/main/java/org/bouncycastle/openpgp/PGPPublicKeyEncryptedData.java')
-rw-r--r--pg/src/main/java/org/bouncycastle/openpgp/PGPPublicKeyEncryptedData.java42
1 files changed, 0 insertions, 42 deletions
diff --git a/pg/src/main/java/org/bouncycastle/openpgp/PGPPublicKeyEncryptedData.java b/pg/src/main/java/org/bouncycastle/openpgp/PGPPublicKeyEncryptedData.java
index 27747c06..8e541fea 100644
--- a/pg/src/main/java/org/bouncycastle/openpgp/PGPPublicKeyEncryptedData.java
+++ b/pg/src/main/java/org/bouncycastle/openpgp/PGPPublicKeyEncryptedData.java
@@ -57,32 +57,6 @@ public class PGPPublicKeyEncryptedData
}
/**
- * Return the algorithm code for the symmetric algorithm used to encrypt the data.
- *
- * @return integer algorithm code
- * @deprecated use the method taking a PublicKeyDataDecryptorFactory
- */
- public int getSymmetricAlgorithm(
- PGPPrivateKey privKey,
- String provider)
- throws PGPException, NoSuchProviderException
- {
- return getSymmetricAlgorithm(privKey, PGPUtil.getProvider(provider));
- }
-
- /**
- *
- * @deprecated use the method taking a PublicKeyDataDecryptorFactory
- */
- public int getSymmetricAlgorithm(
- PGPPrivateKey privKey,
- Provider provider)
- throws PGPException, NoSuchProviderException
- {
- return getSymmetricAlgorithm(new JcePublicKeyDataDecryptorFactoryBuilder().setProvider(provider).setContentProvider(provider).build(privKey));
- }
-
- /**
* Return the symmetric key algorithm required to decrypt the data protected by this object.
*
* @param dataDecryptorFactory decryptor factory to use to recover the session data.
@@ -116,22 +90,6 @@ public class PGPPublicKeyEncryptedData
return getDataStream(privKey, provider, provider);
}
- /**
- *
- * @param privKey
- * @param provider
- * @return
- * @throws PGPException
- * @deprecated use method that takes a PublicKeyDataDecryptorFactory
- */
- public InputStream getDataStream(
- PGPPrivateKey privKey,
- Provider provider)
- throws PGPException
- {
- return getDataStream(privKey, provider, provider);
- }
-
/**
* Return the decrypted data stream for the packet.
*