Bouncy Castle Cryptography Library 1.37

Deprecated API


Contents
Deprecated Classes
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.CRLReason.AA_COMPROMISE
          use lower case version 
org.bouncycastle.asn1.x509.ReasonFlags.AA_COMPROMISE
          use lower case version 
org.bouncycastle.asn1.cmp.PKIFailureInfo.ADD_INFO_NOT_AVAILABLE
          use lower case version 
org.bouncycastle.asn1.x509.CRLReason.AFFILIATION_CHANGED
          use lower case version 
org.bouncycastle.asn1.x509.ReasonFlags.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.CRLReason.CA_COMPROMISE
          use lower case version 
org.bouncycastle.asn1.x509.ReasonFlags.CA_COMPROMISE
          use lower case version 
org.bouncycastle.asn1.x509.CRLReason.CERTIFICATE_HOLD
          use lower case version 
org.bouncycastle.asn1.x509.ReasonFlags.CERTIFICATE_HOLD
          use lower case version 
org.bouncycastle.asn1.x509.CRLReason.CESSATION_OF_OPERATION
          use lower case version 
org.bouncycastle.asn1.x509.ReasonFlags.CESSATION_OF_OPERATION
          use lower case version 
org.bouncycastle.asn1.cmp.PKIFailureInfo.INCORRECT_DATA
          use lower case version 
org.bouncycastle.asn1.x509.CRLReason.KEY_COMPROMISE
          use lower case version 
org.bouncycastle.asn1.x509.ReasonFlags.KEY_COMPROMISE
          use lower case version 
org.bouncycastle.asn1.cmp.PKIFailureInfo.MISSING_TIME_STAMP
          use lower case version 
org.bouncycastle.asn1.x509.CRLReason.PRIVILEGE_WITHDRAWN
          use lower case version 
org.bouncycastle.asn1.x509.ReasonFlags.PRIVILEGE_WITHDRAWN
          use lower case version 
org.bouncycastle.asn1.x509.CRLReason.REMOVE_FROM_CRL
          use lower case version 
org.bouncycastle.asn1.x509.CRLReason.SUPERSEDED
          use lower case version 
org.bouncycastle.asn1.x509.ReasonFlags.SUPERSEDED
          use lower case version 
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 
 

Deprecated Methods
org.bouncycastle.jce.provider.JDKDSASigner.engineGetParameter(String)
            
org.bouncycastle.jce.provider.JDKDigestSignature.engineGetParameter(String)
            
org.bouncycastle.jce.provider.JDKGOST3410Signer.engineGetParameter(String)
            
org.bouncycastle.jce.provider.JDKISOSignature.engineGetParameter(String)
            
org.bouncycastle.jce.provider.JDKDSASigner.engineSetParameter(String, Object)
          replaced with  
org.bouncycastle.jce.provider.JDKDigestSignature.engineSetParameter(String, Object)
          replaced with  
org.bouncycastle.jce.provider.JDKGOST3410Signer.engineSetParameter(String, Object)
          replaced with  
org.bouncycastle.jce.provider.JDKISOSignature.engineSetParameter(String, Object)
          replaced with  
org.bouncycastle.jce.provider.JDKPSSSigner.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.X509V1CertificateGenerator.generateX509Certificate(PrivateKey)
          use generate(key, "BC") 
org.bouncycastle.x509.X509V3CertificateGenerator.generateX509Certificate(PrivateKey)
          use generate(key, "BC") 
org.bouncycastle.x509.X509V1CertificateGenerator.generateX509Certificate(PrivateKey, SecureRandom)
          use generate(key, random, "BC") 
org.bouncycastle.x509.X509V3CertificateGenerator.generateX509Certificate(PrivateKey, SecureRandom)
          use generate(key, random, "BC") 
org.bouncycastle.x509.X509V1CertificateGenerator.generateX509Certificate(PrivateKey, String)
          use generate() 
org.bouncycastle.x509.X509V3CertificateGenerator.generateX509Certificate(PrivateKey, String)
          use generate() 
org.bouncycastle.x509.X509V1CertificateGenerator.generateX509Certificate(PrivateKey, String, SecureRandom)
          use generate() 
org.bouncycastle.x509.X509V3CertificateGenerator.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.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.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.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.x509.X509Name(Hashtable)
          use an ordered constructor! The hashtable ordering is rarely correct 
 


Bouncy Castle Cryptography Library 1.37