Deprecated API
Contents
-
ClassDescriptionWill be removedsince RFC9580this class is no longer required and will be removed.
-
FieldDescriptionnon-standardnon-standardnon-standardnon-standardnon-standardnon-standarduse
PublicKeyAlgorithmTags.ECDH
instead.usePublicKeyAlgorithmTags.EDDSA_LEGACY
instead.usePublicKeyAlgorithmTags.ELGAMAL_ENCRYPT
instead.usePublicKeyAlgorithmTags.RSA_GENERAL
instead.usePublicKeyAlgorithmTags.RSA_GENERAL
instead.useS2K.SALTED_AND_ITERATED
orS2K.ARGON_2
instead.useS2K.SALTED_AND_ITERATED
orS2K.ARGON_2
instead.Use of MalleableCFB is deprecated. For v4 keys, useSecretKeyPacket.USAGE_SHA1
instead. For v6 keys useSecretKeyPacket.USAGE_AEAD
instead.
-
MethodDescriptionuse AEADUtils.getIVLength()use Builder class for configuring this.use appropriate methods in
ArmoredOutputStream.Builder
insteaduse appropriate methods inArmoredOutputStream.Builder
instead.useArmoredOutputStream.Builder.clearHeaders()
instead.use appropriate methods inArmoredOutputStream.Builder
instead.use skipMarkerAndPaddingPacketsuse getPacketTag();v4 and v6 keys instead signal their expiration time via theKeyExpirationTime
signature subpacket.Will be removedWill be removedWill be removeduse versionedJcaPGPKeyConverter.getPGPPublicKey(int, int, PublicKey, Date)
instead.use versionedJcaPGPKeyConverter.getPGPPublicKey(int, int, PGPAlgorithmParameters, PublicKey, Date)
instead.will be removed in 1.74, use PGPEncryptedDataList.extractSessionKeyEncryptedData() and then apply the dataDecryptorFactory.use getValidSeconds(): greater than version 3 keys may be valid for less than a day.this method is poorly named, use hasRevocation().will be removed in 1.74, use PGPEncryptedDataList.extractSessionKeyEncryptedData() and then apply the dataDecryptorFactory.usePGPPublicKeyEncryptedData.getKeyIdentifier()
insteaduse org.bouncycastle.gpg.SExprParser - it will also allow you to verify the protection checksum if it is available.use org.bouncycastle.gpg.SExprParser - it will also allow you to verify the protection checksum if it is available.the revocation key mechanism is deprecated. Applications MUST NOT generate such a packet.the use of this subpacket is deprecated in LibrePGPthe revocation key mechanism is deprecated. Applications MUST NOT generate such a packet.use getNotationDataOccurrences()unusedunused
-
ConstructorDescriptionuse versioned
PublicKeyPacket(int, int, Date, BCPGKey)
insteaduse versionedPublicSubkeyPacket(int, int, Date, BCPGKey)
insteaduse createVersion1Packet()use createVersion4Packet()use versionedJcaPGPKeyPair(int, int, KeyPair, Date)
insteaduse versionedJcaPGPKeyPair(int, int, PGPAlgorithmParameters, KeyPair, Date)
instead