Bouncy Castle Cryptography Library 1.45

## Deprecated API

Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

Deprecated Classes
org.bouncycastle.asn1.ASN1ObjectParser will be removed
org.bouncycastle.asn1.BERConstructedSequence use BERSequence
org.bouncycastle.asn1.BERInputStream use ASN1InputStream
org.bouncycastle.asn1.DERConstructedSequence use DERSequence.
org.bouncycastle.asn1.DERConstructedSet use DERSet
org.bouncycastle.asn1.util.DERDump use ASN1Dump.
org.bouncycastle.asn1.DERInputStream use ASN1InputStream
org.bouncycastle.crypto.modes.PaddedBlockCipher use org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher instead.
org.bouncycastle.asn1.pkcs.PBES2Algorithms - use AlgorithmIdentifier and PBES2Parameters
org.bouncycastle.jce.PKCS7SignedData this class really is obsolete - use the CMS package.
org.bouncycastle.jce.X509V1CertificateGenerator use the equivalent class in org.bouncycastle.x509
org.bouncycastle.jce.X509V2CRLGenerator use the equivalent class in org.bouncycastle.x509
org.bouncycastle.jce.X509V3CertificateGenerator use the equivalent class in org.bouncycastle.x509

Deprecated Fields
org.bouncycastle.asn1.x509.ReasonFlags.AA_COMPROMISE use lower case version
org.bouncycastle.asn1.x509.CRLReason.AA_COMPROMISE use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.ADD_INFO_NOT_AVAILABLE use lower case version
org.bouncycastle.asn1.x509.ReasonFlags.AFFILIATION_CHANGED use lower case version
org.bouncycastle.asn1.x509.CRLReason.AFFILIATION_CHANGED use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.BAD_ALG use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.BAD_CERT_ID use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.BAD_DATA_FORMAT use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.BAD_MESSAGE_CHECK use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.BAD_POP use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.BAD_REQUEST use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.BAD_TIME use lower case version
org.bouncycastle.asn1.x509.ReasonFlags.CA_COMPROMISE use lower case version
org.bouncycastle.asn1.x509.CRLReason.CA_COMPROMISE use lower case version
org.bouncycastle.asn1.x509.ReasonFlags.CERTIFICATE_HOLD use lower case version
org.bouncycastle.asn1.x509.CRLReason.CERTIFICATE_HOLD use lower case version
org.bouncycastle.asn1.x509.ReasonFlags.CESSATION_OF_OPERATION use lower case version
org.bouncycastle.asn1.x509.CRLReason.CESSATION_OF_OPERATION use lower case version
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_aa_commitmentType use id_aa_ets_commitmentType instead
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_aa_otherSigCert use id_aa_ets_otherSigCert instead
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_aa_signerLocation use id_aa_ets_signerLocation instead
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_aa_sigPolicyId use id_aa_ets_sigPolicyId instead
org.bouncycastle.asn1.cmp.PKIFailureInfo.INCORRECT_DATA use lower case version
org.bouncycastle.asn1.x509.ReasonFlags.KEY_COMPROMISE use lower case version
org.bouncycastle.asn1.x509.CRLReason.KEY_COMPROMISE use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.MISSING_TIME_STAMP use lower case version
org.bouncycastle.asn1.x509.X509Name.OIDLookUp use DefaultSymbols
org.bouncycastle.asn1.x509.ReasonFlags.PRIVILEGE_WITHDRAWN use lower case version
org.bouncycastle.asn1.x509.CRLReason.PRIVILEGE_WITHDRAWN use lower case version
org.bouncycastle.asn1.x509.CRLReason.REMOVE_FROM_CRL use lower case version
org.bouncycastle.asn1.x509.ReasonFlags.SUPERSEDED use lower case version
org.bouncycastle.asn1.x509.CRLReason.SUPERSEDED use lower case version
org.bouncycastle.asn1.x509.X509Name.SymbolLookUp use DefaultLookUp
org.bouncycastle.asn1.cmp.PKIFailureInfo.SYSTEM_FAILURE use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.TIME_NOT_AVAILABLE use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.UNACCEPTED_EXTENSION use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.UNACCEPTED_POLICY use lower case version
org.bouncycastle.asn1.x509.CRLReason.UNSPECIFIED use lower case version
org.bouncycastle.asn1.x509.ReasonFlags.UNUSED use lower case version
org.bouncycastle.asn1.cmp.PKIFailureInfo.WRONG_AUTHORITY use lower case version
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.x509certType use x509Certificate instead

Deprecated Methods
org.bouncycastle.x509.ExtendedPKIXParameters.addAddionalStore(Store)
org.bouncycastle.crypto.tls.TlsOuputStream.cose() Use 'close' instead
org.bouncycastle.jce.provider.JDKISOSignature.engineGetParameter(String)
org.bouncycastle.jce.provider.JDKGOST3410Signer.engineGetParameter(String)
org.bouncycastle.jce.provider.JDKDigestSignature.engineGetParameter(String)
org.bouncycastle.jce.provider.JDKDSASigner.engineGetParameter(String)
org.bouncycastle.jce.provider.DSABase.engineGetParameter(String)
org.bouncycastle.jce.provider.JDKPSSSigner.engineSetParameter(String, Object) replaced with
org.bouncycastle.jce.provider.JDKISOSignature.engineSetParameter(String, Object) replaced with
org.bouncycastle.jce.provider.JDKGOST3410Signer.engineSetParameter(String, Object) replaced with
org.bouncycastle.jce.provider.JDKDigestSignature.engineSetParameter(String, Object) replaced with
org.bouncycastle.jce.provider.JDKDSASigner.engineSetParameter(String, Object) replaced with
org.bouncycastle.jce.provider.DSABase.engineSetParameter(String, Object) replaced with
org.bouncycastle.x509.X509V2AttributeCertificateGenerator.generateCertificate(PrivateKey, String) use generate()
org.bouncycastle.x509.X509V2AttributeCertificateGenerator.generateCertificate(PrivateKey, String, SecureRandom) use generate()
org.bouncycastle.x509.X509V3CertificateGenerator.generateX509Certificate(PrivateKey) use generate(key, "BC")
org.bouncycastle.x509.X509V1CertificateGenerator.generateX509Certificate(PrivateKey) use generate(key, "BC")
org.bouncycastle.x509.X509V3CertificateGenerator.generateX509Certificate(PrivateKey, SecureRandom) use generate(key, random, "BC")
org.bouncycastle.x509.X509V1CertificateGenerator.generateX509Certificate(PrivateKey, SecureRandom) use generate(key, random, "BC")
org.bouncycastle.x509.X509V3CertificateGenerator.generateX509Certificate(PrivateKey, String) use generate()
org.bouncycastle.x509.X509V1CertificateGenerator.generateX509Certificate(PrivateKey, String) use generate()
org.bouncycastle.x509.X509V3CertificateGenerator.generateX509Certificate(PrivateKey, String, SecureRandom) use generate()
org.bouncycastle.x509.X509V1CertificateGenerator.generateX509Certificate(PrivateKey, String, SecureRandom) use generate()
org.bouncycastle.x509.X509V2CRLGenerator.generateX509CRL(PrivateKey) use generate(key, "BC")
org.bouncycastle.x509.X509V2CRLGenerator.generateX509CRL(PrivateKey, SecureRandom) use generate(key, random, "BC")
org.bouncycastle.x509.X509V2CRLGenerator.generateX509CRL(PrivateKey, String) use generate()
org.bouncycastle.x509.X509V2CRLGenerator.generateX509CRL(PrivateKey, String, SecureRandom) use generate()
org.bouncycastle.crypto.signers.RSADigestSigner.getAlgorithmName()
org.bouncycastle.asn1.x509.CertificatePolicies.getInstance(ASN1TaggedObject, boolean) use an ASN1Sequence of PolicyInformation
org.bouncycastle.asn1.x509.CertificatePolicies.getInstance(Object) use an ASN1Sequence of PolicyInformation
org.bouncycastle.asn1.cryptopro.GOST3410ParamSetParameters.getLKeySize() use getKeySize
org.bouncycastle.ocsp.BasicOCSPResp.getResponseData() RespData class is no longer required as all functionality is available on this class.
org.bouncycastle.crypto.tls.TlsProtocolHandler.getTlsInputStream() use 'getInputStream' instead
org.bouncycastle.crypto.tls.TlsProtocolHandler.getTlsOuputStream() use 'getOutputStream' instead
org.bouncycastle.asn1.x509.CertificatePolicies.toASN1Object() use an ASN1Sequence of PolicyInformation

Deprecated Constructors
org.bouncycastle.asn1.x509.BasicConstraints(boolean, int) use one of the other two unambigous constructors.
org.bouncycastle.asn1.BEROctetStringParser(ASN1ObjectParser) will be removed
org.bouncycastle.crypto.macs.BlockCipherMac(BlockCipher) use CBCBlockCipherMac
org.bouncycastle.crypto.macs.BlockCipherMac(BlockCipher, int) use CBCBlockCipherMac
org.bouncycastle.asn1.x509.CertificatePolicies(ASN1Sequence) use an ASN1Sequence of PolicyInformation
org.bouncycastle.asn1.x509.CertificatePolicies(DERObjectIdentifier) use an ASN1Sequence of PolicyInformation
org.bouncycastle.asn1.x509.CertificatePolicies(String) use an ASN1Sequence of PolicyInformation
org.bouncycastle.asn1.DEREncodableVector() use ASN1EncodableVector instead.
org.bouncycastle.asn1.DERInputStream(InputStream) use ASN1InputStream
org.bouncycastle.asn1.x509.GeneralName(DERObject, int) this constructor seems the wrong way round! Use GeneralName(tag, name).
org.bouncycastle.crypto.macs.OldHMac(Digest) uses incorrect pad for SHA-512 and SHA-384 use HMac.
org.bouncycastle.asn1.cms.OriginatorIdentifierOrKey(ASN1OctetString) use version taking a SubjectKeyIdentifier
org.bouncycastle.asn1.cms.OriginatorIdentifierOrKey(DERObject) use more specific version
org.bouncycastle.asn1.x509.X509Name(Hashtable) use an ordered constructor! The hashtable ordering is rarely correct

Bouncy Castle Cryptography Library 1.45