Top Deprecated
Bouncy Castle OpenPGP APIs (FIPS Distribution) 1.0.7.1

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
org.bouncycastle.openpgp.PGPPBEEncryptedData.getDataStream(SessionKeyDataDecryptorFactory dataDecryptorFactory)

will be removed in 1.74, use PGPEncryptedDataList.extractSessionKeyEncryptedData() and then apply the dataDecryptorFactory.

Returns:

number of valid days from creation time - zero means no expiry.
org.bouncycastle.openpgp.PGPPublicKey.getValidDays
()

use getValidSeconds(): greater than version 3 keys may be valid for less than a day.

Returns:

boolean indicating whether this (sub)key has been revoked.
org.bouncycastle.openpgp.PGPPublicKey.isRevoked
()

this method is poorly named, use hasRevocation().

org.bouncycastle.openpgp.PGPPublicKeyEncryptedData.getDataStream(SessionKeyDataDecryptorFactory dataDecryptorFactory)

will be removed in 1.74, use PGPEncryptedDataList.extractSessionKeyEncryptedData() and then apply the dataDecryptorFactory.

Returns:

a secret key object.
org.bouncycastle.openpgp.PGPSecretKey.parseSecretKeyFromSExpr
(InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, PGPPublicKey pubKey)

use org.bouncycastle.gpg.SExprParser - it will also allow you to verify the protection checksum if it is available.

Returns:

a secret key object.
org.bouncycastle.openpgp.PGPSecretKey.parseSecretKeyFromSExpr
(InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, KeyFingerPrintCalculator fingerPrintCalculator)

use org.bouncycastle.gpg.SExprParser - it will also allow you to verify the protection checksum if it is available.

org.bouncycastle.openpgp.PGPSignatureSubpacketGenerator.setEmbeddedSignature(boolean
true if should be treated as critical, false otherwise.
isCritical
,
PGPSignature
embedded signature
pgpSignature
)

use addEmbeddedSignature(boolean, PGPSignature) instead.

org.bouncycastle.openpgp.PGPSignatureSubpacketGenerator.setIntendedRecipientFingerprint(boolean
true if critical, false otherwise.
isCritical
,
PGPPublicKey
the public key the encrypted payload was encrypted against.
publicKey
)

use addIntendedRecipientFingerprint(boolean, PGPPublicKey) instead.

org.bouncycastle.openpgp.PGPSignatureSubpacketGenerator.setNotationData(boolean
true if should be treated as critical, false otherwise.
isCritical
,
boolean
true if the notation is human-readable.
isHumanReadable
,
String
name of the notation key
notationName
,
String
value of the notation
notationValue
)

use addNotationData(boolean, boolean, String, String) instead.

org.bouncycastle.openpgp.PGPSignatureSubpacketGenerator.setRevocationKey(boolean
true if should be treated as critical, false otherwise.
isCritical
,
int
algorithm of the revocation key
keyAlgorithm
,
byte[]
fingerprint of the revocation key
fingerprint
)

use addRevocationKey(boolean, int, byte[]) instead.

org.bouncycastle.openpgp.PGPSignatureSubpacketGenerator.setSignerUserID(boolean
true if should be treated as critical, false otherwise.
isCritical
,
String
signer user-id
userID
)

use addSignerUserID(boolean, String) instead.

Returns:

the name of the default provider.
org.bouncycastle.openpgp.PGPUtil.getDefaultProvider
()

unused

org.bouncycastle.openpgp.PGPUtil.setDefaultProvider(String
the name of the JCA/JCE provider to use by default.
provider
)

unused

org.bouncycastle.openpgp.operator.RFC6637KDFCalculator

this class is no longer required and will be removed.