-
Deprecated InterfacesInterfaceDescriptionNo longer useduse 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.
-
Deprecated ClassesClassDescriptionWill be removed. See comments for
ASN1ApplicationSpecific
.Will be made non-public. Test for and use onlyASN1TaggedObjectParser
.Will be removed. See comments forASN1ApplicationSpecific
.Will be removed. See comments forASN1ApplicationSpecific
.use RSAPrivateKeyuse ECPrivateKeyuse ASN1Dump.use org.bouncycastle.asn1.pkcs.RSAPublicKeyuse TBSCertificateuse org.bouncycastle.asn1.x509.Certificateuse ExtensionuseExtensions
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 org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher instead.use AEADParametersuse org.bouncycastle.util.packThis class does not support configuration on creation, use BCFKSLoadStoreParameter for best results.use org.bouncycastle.jcajce.PKCS12StoreParameteruse 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.the NTRUSigner algorithm was broken in 2012 by Ducas and Nguyen. See https://www.di.ens.fr/~ducas/NTRUSign_Cryptanalysis/DucasNguyen_Learning.pdf for details.algorithm no longer safe.use LMSKeyGenParameterSpecuse LMSKeyGenParameterSpec
-
Deprecated FieldsFieldDescriptionuse xmss_mt_SHA256phuse xmss_mt_SHA512phuse xmss_mt_SHAKE128phuse xmss_mt_SHAKE256phuse xmss_SHA256phuse xmss_SHA512phuse xmss_SHAKE128phuse xmss_SHAKE256phuse id_aa_ets_commitmentType insteaduse id_aa_ets_otherSigCert insteaduse id_aa_ets_signerLocation insteaduse id_aa_ets_sigPolicyId 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 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_SHAKE256ph
-
Deprecated MethodsMethodDescriptionWill be removed. Use
ASN1ApplicationSpecific.getEnclosedObject()
instead.Tagged objects now include thetag class
. This method will raise an exception if it is notBERTags.CONTEXT_SPECIFIC
. UseASN1TaggedObject.getBaseUniversal(boolean, int)
only after confirming the expected tag class.This parser now includes thetag class
. This method will raise an exception if it is notBERTags.CONTEXT_SPECIFIC
. UseASN1Util#parseContextBaseUniversal(ASN1TaggedObjectParser, int, int, boolean, int)
as a direct replacement, or useASN1TaggedObjectParser.parseBaseUniversal(boolean, int)
only after confirming the expected tag class (e.g.ASN1Util.tryParseContextBaseUniversal(ASN1TaggedObjectParser, int, boolean, int)
.Will be removed.UseECGOST3410NamedCurves.getByNameX9(String)
instead.use getKeySizeUseASN1BitString.getInstance(Object)
andDERBitString.convert(ASN1BitString)
instead.UseASN1BMPString.getInstance(Object)
instead.UseASN1BMPString.getInstance(ASN1TaggedObject, boolean)
instead.UseASN1GeneralString.getInstance(Object)
instead.UseASN1GraphicString.getInstance(Object)
instead.UseASN1IA5String.getInstance(Object)
instead.UseASN1IA5String.getInstance(ASN1TaggedObject, boolean)
instead.UseASN1NumericString.getInstance(Object)
instead.UseASN1PrintableString.getInstance(Object)
instead.UseASN1T61String.getInstance(Object)
instead.UseASN1T61String.getInstance(ASN1TaggedObject, boolean)
instead.UseASN1UniversalString.getInstance(Object)
instead.UseASN1UTF8String.getInstance(Object)
instead.UseASN1VideotexString.getInstance(Object)
instead.UseASN1VisibleString.getInstance(Object)
instead.UsePublicKeyAndChallenge.getChallengeIA5()
instead.UseCrlID.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 methoduse 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 "#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 insteaduse generateExchangeuse 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)use MathFunctions.log(double) insteaduse MathFunctions.log(long) insteaduse the SHAKE based version.Will be removed
-
Deprecated ConstructorsConstructorDescriptionWill be removed.Use
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 CBCBlockCipherMacuse CBCBlockCipherMacuses incorrect pad for SHA-512 and SHA-384 use HMac.use constructor taking order/cofactoruse constructor taking order/cofactoruse constructor taking order/cofactoruse the SHAKE only version.
ASN1TaggedObjectParser
withtag class
ofBERTags.APPLICATION
instead.