Deprecated API
Contents
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionWill be removedclass appears to be no longer in use, maybe getting imported by others though.Replaced by; this class does not understand RFC 9579 PBMAC1-protected PKCS#12 files (it throws UnsupportedOperationException for them) and will be removed in a future release.
invalid reference
org.bouncycastle.pkcs.util.PKCS12Utiluse org.bouncycastle.jcajce.config.PKCS12StoreParameterDo not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.use org.bouncycastle.crypto.signers.HashMLDSASigneruse org.bouncycastle.crypto.params.MLDSAKeyGenerationParametersuse org.bouncycastle.crypto.generators.MLDSAKeyPairGeneratoruse org.bouncycastle.crypto.params.MLDSAKeyParametersuse org.bouncycastle.crypto.params.MLDSAParametersuse org.bouncycastle.crypto.params.MLDSAPrivateKeyParametersuse org.bouncycastle.crypto.params.MLDSAPublicKeyParametersuse org.bouncycastle.crypto.signers.MLDSASigneruse org.bouncycastle.crypto.kems.MLKEMExtractoruse org.bouncycastle.crypto.kems.MLKEMGeneratoruse org.bouncycastle.crypto.params.MLKEMKeyGenerationParametersuse org.bouncycastle.crypto.generators.MLKEMKeyPairGeneratoruse org.bouncycastle.crypto.params.MLKEMKeyParametersuse org.bouncycastle.crypto.params.MLKEMParametersuse org.bouncycastle.crypto.params.MLKEMKeyPrivateKeyParametersuse org.bouncycastle.crypto.params.MLKEMKeyPublicKeyParametersuse org.bouncycastle.crypto.signers.HashSLHDSASigneruse org.bouncycastle.crypto.signers.slhdsa.SLHDSASigneruse org.bouncycastle.crypto.params.SLHDSAKeyGenerationParametersuse org.bouncycastle.crypto.generators.SLHDSAKeyPairGeneratoruse org.bouncycastle.crypto.params.SLHDSAKeyParametersuse org.bouncycastle.crypto.params.SLHDSAPrivateKeyParametersuse org.bouncycastle.crypto.params.SLHDSAPublicKeyParametersuse org.bouncycastle.crypto.signers.SLHDSASigneruse org.bouncycastle.jcajce.util.SpecUtil
-
Deprecated FieldsFieldDescriptionuse 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 statementOfPossessionuse id_at_roleUse CRMFObjectIdentifiers.passwordBasedMac insteaduse NOT_STRICT_LENGTH_ENABLED_PROPERTYuse kem_P384_SHA384use ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailersuse ISOTrailers
-
Deprecated MethodsMethodDescriptionWill be removedWill be removedNo longer used; will be removedNo longer used; will be removeduse getHash(), the internal encoding is now an OCTET STRINGUse
AuthorityKeyIdentifier.getKeyIdentifierOctets()instead.Use getValidityObject instead.Use DeltaCertificateTool#trimDeltaCertificateDescriptor instead.Use addExtensions instead.Will be removedas a direct replacement useBCrypt.generate(byte[], byte[], int, boolean)so the terminator choice is explicit at the call site — passtrueto have the spec-required 0x00 terminator appended (equivalent to feedingpwInputthroughBCrypt.passwordToByteArray(char[])),falsewhen the supplied bytes already include it. For general password hashing preferOpenBSDBCrypt, which handles termination, salt formatting and the modular crypt output line; this raw primitive remains available for test-vector validation and interop with implementations that emit the 24-byte hash directly (issue #1741).UseMLDSAPrivateKeyParameters.getEncoded()instead.UseMLKEMPrivateKeyParameters.withPreferredFormat(int)instead.Use '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 AlgorithmParametersUtils.extractParameters(AlgorithmParameters params)use MessageDigestUtils,getDigestName()use AlgorithmParametersUtils.loadParameters(AlgorithmParameters params, ASN1Encodable sParams)Use createMessageDigest insteadUse createMessageDigest insteadUseX25519Field.decode255(byte[], int[])instead.UseX25519Field.decode255(byte[], int, int[], int)instead.UseX25519Field.decode255(byte[], int, int[], int)instead.UseX25519Field.decode255(int[], int, int[], int)instead.UseX448Field.decode448(byte[], int[])instead.UseX448Field.decode448(byte[], int, int[], int)instead.UseX448Field.decode448(byte[], int, int[], int)instead.UseX448Field.decode448(int[], int, int[], int)instead.UseMLDSAPrivateKeyParameters.getEncoded()instead.will be removed.UseMLKEMPrivateKeyParameters.withPreferredFormat(int)instead.replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)UseNat.xorTo64(int, long[], int, long[], int)instead.
-
Deprecated ConstructorsConstructorDescriptionUse
DERExternal.fromVector(ASN1EncodableVector)instead.UseDERExternal.fromSequence(ASN1Sequence)instead.UseDLExternal.fromVector(ASN1EncodableVector)instead.UseDLExternal.fromSequence(ASN1Sequence)instead.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 CertPolicyId constructors.use PolicyQualifierInfo.getInstance()use getInstance() will be removed.use AsymmetricKeyParameteruse AESEngine.newInstance()use the CBCBlockCipher.newInstance() static method.use the CCMBlockCipher.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/cofactor