Deprecated API
Contents
-
InterfaceDescriptionNo longer usedjust use DHPublicKey.use MQVParameterSpec for passing the ephemeral key.use MQVParameterSpec for passing the ephemeral key.use Encodableit's better to avoid this and use extractKeyShard methods where possible.use X509CertificateHolder class in the PKIX package.
-
ClassDescriptionCheck for 'ASN1BitStringParser' insteadCheck for 'ASN1OctetStringParser' insteadCheck for 'ASN1SequenceParser' insteadCheck for 'ASN1SetParser' insteadCheck for 'ASN1OctetStringParser' insteadCheck for 'ASN1BitStringParser' insteadCheck for 'ASN1SequenceParser' insteadCheck for 'ASN1SetParser' insteaduse RSAPrivateKeyuse ECPrivateKeyuse ASN1Dump.use org.bouncycastle.asn1.pkcs.RSAPublicKeyuse TBSCertificateuse org.bouncycastle.asn1.x509.Certificateuse Extensionuse
Extension
andExtensions
use org.bouncycastle.asn1.x509.ExtensionsGeneratoruse org.bouncycastle.asn1.x500.X500Name.use X500NameTokenizeruse DomainParametersuse ValidationParamsunfortunately this class is has a few side channel issues. In an environment where encryption/decryption may be closely observed it should not be used.use ECIESKEMGenerator, ECIESKEMExtractoruse RSAKEMGenerator, RSAKEMExtractoruse org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher instead.use AEADParametersUseECGOST3410Signer
instead.use org.bouncycastle.util.packThis class does not support configuration on creation, use BCFKSLoadStoreParameter for best results.use org.bouncycastle.jcajce.PKCS12StoreParameteruse KTSParameterSpecuse classes in org.bouncycastle.pkcs.use org.bouncycastle.jcajce.config.PKCS12StoreParameterDo not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.use CertificateFactory or the PEMParser in the openssl package (pkix jar).Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.use org.bouncycastle.jcajce.spec.GOST28147ParameterSpecuse super class org.bouncycastle.jcajce.spec.RepeatedSecretKeySpecuse the X500Name class.use LMSKeyGenParameterSpecuse LMSKeyGenParameterSpecthe NTRUSigner algorithm was broken in 2012 by Ducas and Nguyen. See https://www.di.ens.fr/~ducas/NTRUSign_Cryptanalysis/DucasNguyen_Learning.pdf for details.use org.bouncycastle.util.Arrays.use org.bouncycastle.cert.AttributeCertificateHolderuse org.bouncycastle.cert.AttributeCertificateIssueruse PKIXExtendedBuilderParametersuse PKIXExtendedParametersuse JcaX509ExtensionUtils and AuthorityKeyIdentifier.getInstance()use org.bouncycastle.cert.jcajce.JcaX509ExtensionUtilsuse org.bouncycastle.pkix.jcajce.PKIXCertPathReviewer in the bcpkix packagesee X509CertificateHolder class in the PKIX package.use org.bouncycastle.cert.X509AttributeCertificateSelector and org.bouncycastle.cert.X509AttributeCertificateSelectorBuilder.use the classes under org.bouncycastle.cert.selectoruse CollectionStore - this class will be removed.use org.bouncycastle.cert.X509v1CertificateBuilder.use org.bouncycastle.cert.X509AttributeCertificateHolderuse org.bouncycastle.cert.X509v2CRLBuilder.use org.bouncycastle.cert.X509v3CertificateBuilder.
-
FieldDescriptionuse id_aa_ets_commitmentType insteaduse id_aa_ets_otherSigCert insteaduse id_aa_ets_signerLocation insteaduse id_aa_ets_sigPolicyId insteaduse smime_alg insteaduse id_spq_oid insteaduse pbeWithSHAAnd40BitRC2_CBCuse x509Certificate insteaduse SERIALNUMBER or SURNAMEuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse lower case versionuse id_at_roleuse X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use X509Extension value.use a X500NameStyleuse a X500NameStyleuse a X500NameStyleuse a X500NameStyleuse DefaultSymbolsuse a X500NameStyleuse DefaultLookUpuse a X500NameStyleUse CRMFObjectIdentifiers.passwordBasedMac insteaduse NOT_STRICT_LENGTH_ENABLED_PROPERTYuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse xmss_mt_SHA256phuse xmss_mt_SHA512phuse xmss_mt_SHAKE128phuse xmss_mt_SHAKE256phuse xmss_SHA256phuse xmss_SHA512phuse xmss_SHAKE128phuse xmss_SHAKE256phobsolete to be removed
-
MethodDescriptionuse getHash(), the internal encoding is now an OCTET STRINGuse getKeySizeUse
CrlID.getCrlUrlIA5()
instead.UseECPrivateKey.getParametersObject()
instead and getInstance methods or similar to get the object at the desired type.UseBiometricData.getSourceDataUriIA5()
instead.use getAlgorithm()use parsePublicKeyuse X500Name methoduse X500Name methoduse method taking Extensionsuse X500Name methoduse method taking Extensionsuse X500Name methoduse X500Name methodWill be removedUse version including the modulus instead.Will be removedWill be removeduse ECIESKEMExtractoruse ECIESKEMExtractoruse ECIESKEMGeneratoruse ECIESKEMGeneratoruse overload that doesn't take a public keyuse overload that doesn't take a public keyUse 'getValidityDate' instead (which can return null).replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with "#engineSetParameter(java.security.spec.AlgorithmParameterSpec)"replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with engineGetParameters()replaced with "#engineSetParameter(java.security.spec.AlgorithmParameterSpec)"use getSBox()Use createMessageDigest insteadUse createMessageDigest insteaduse AlgorithmParametersUtils.extractParameters(AlgorithmParameters params)use MessageDigestUtils,getDigestName()use AlgorithmParametersUtils.loadParameters(AlgorithmParameters params, ASN1Encodable sParams)Use createMessageDigest insteadUse createMessageDigest insteadUseDilithiumPrivateKeyParameters.getEncoded()
instead.UseMLDSAPrivateKeyParameters.getEncoded()
instead.UseSPHINCSPlusParameters.getID()
insteaduse getEncoded() - this method will become private.use getEncoded() - this method will become private.use getEncoded() - this method will become private.use getEncoded() - this method will become private.use getEncoded() this method will become private.replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)use MathFunctions.log(double) insteaduse MathFunctions.log(long) insteaduse the SHAKE based version.Will be removeduse addStore().use org.bouncycastle.cert.jcajce.JcaX509ExtensionUtils.parseExtensionValue()use org.bouncycastle.cert.jcajce.JcaX509ExtensionUtils.getIssuerAlternativeNames()use org.bouncycastle.cert.jcajce.JcaX509ExtensionUtils.getSubjectAlternativeNames()use generate(key, "BC")use generate()use generate()use generate(key, random, "BC")use generate(key, "BC")use generate()use generate()use generate(key, random, "BC")use generate(key, "BC")use generate()use generate()use generate(key, random, "BC")
-
ConstructorDescriptionUse
DERExternal(DERSequence)
instead.UseDLExternal(DLSequence)
instead.use method taking Extensionsuse method taking ASN1GeneralizedTime and Extensionsuse method taking Extensionsuse getInstance()use X500Name method.use constructor which takes orderBitLength to guarantee correct encoding.use constructor which takes orderBitLength to guarantee correct encoding.use constructor which takes orderBitLength to guarantee correct encoding.use the getInstance() method that takes a style.create the extension using org.bouncycastle.cert.X509ExtensionUtilscreate the extension using org.bouncycastle.cert.X509ExtensionUtilsuse KeyPurposeId[] constructor.use X500Name constructor.use CertPolicyId constructors.use PolicyQualifierInfo.getInstance()use SubjectPublicKeyInfo.getInstance()use Extensionsuse Extensionsuse X500Name, X500NameBuilderuse X500Name, X500NameBuilderuse X500Name, X500NameBuilderuse X500Name, X500NameBuilderuse X500Name, X500NameBuilderuse an ordered constructor! The hashtable ordering is rarely correctuse X500Name, X500NameBuilderuse X500Name, X500NameBuilderuse X500Name, X500NameBuilderuse X500Name.getInstance()use AsymmetricKeyParameteruse the constructor on DefaultBufferedBlockCipher.use AESEngine.newInstance()use CBCBlockCipherMacuse CBCBlockCipherMacuses incorrect pad for SHA-512 and SHA-384 use HMac.use the CBCBlockCipher.newInstance() static method.use the CCMBlockCipher.newInstance() static method.use the equivalent CFBBlockCipher.newInstance() static method.use the GCMBlockCipher.newInstance() static method.use the CBCBlockCipher.newInstance() static method.use newInstance() method.use constructor taking order/cofactoruse constructor taking order/cofactoruse constructor taking order/cofactoruse getInstance()use getInstance()use getInstance()use getInstance()use getInstance()use the SHAKE only version.use constructor that takes Extension