# Deprecated API

## Contents

- Classes
- Fields
- Methods

- Classes
  Class | Description
  --- | ---
  org.bouncycastle.openpgp.operator.RFC6637KDFCalculator | this class is no longer required and will be removed.

- Fields
  Field | Description
  --- | ---
  org.bouncycastle.bcpg.PublicKeyAlgorithmTags.EC | use ECDH

- Methods
  Method | Description
  --- | ---
  org.bouncycastle.openpgp.PGPPublicKey.getValidDays() | use getValidSeconds(): greater than version 3 keys may be valid for less than a day.
  org.bouncycastle.openpgp.PGPPublicKey.isRevoked() | this method is poorly named, use hasRevocation().
  org.bouncycastle.openpgp.PGPSecretKey.parseSecretKeyFromSExpr​(InputStream, PBEProtectionRemoverFactory, PGPPublicKey) | 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, PGPSignature) | use `PGPSignatureSubpacketGenerator.addEmbeddedSignature(boolean, PGPSignature)` instead.
  org.bouncycastle.openpgp.PGPSignatureSubpacketGenerator.setIntendedRecipientFingerprint​(boolean, PGPPublicKey) | use `PGPSignatureSubpacketGenerator.addIntendedRecipientFingerprint(boolean, PGPPublicKey)` instead.
  org.bouncycastle.openpgp.PGPSignatureSubpacketGenerator.setNotationData​(boolean, boolean, String, String) | use `PGPSignatureSubpacketGenerator.addNotationData(boolean, boolean, String, String)` instead.
  org.bouncycastle.openpgp.PGPSignatureSubpacketGenerator.setRevocationKey​(boolean, int, byte[]) | use `PGPSignatureSubpacketGenerator.addRevocationKey(boolean, int, byte[])` instead.
  org.bouncycastle.openpgp.PGPSignatureSubpacketGenerator.setSignerUserID​(boolean, String) | use `PGPSignatureSubpacketGenerator.addSignerUserID(boolean, String)` instead.
  org.bouncycastle.openpgp.PGPSignatureSubpacketVector.getNotationDataOccurences() | use getNotationDataOccurrences()
  org.bouncycastle.openpgp.PGPUtil.getDefaultProvider() | unused
  org.bouncycastle.openpgp.PGPUtil.setDefaultProvider​(String) | unused