Top Deprecated
Bouncy Castle Provider 1.77

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
org.bouncycastle.asn1.BERBitStringParser

Check for 'ASN1BitStringParser' instead

org.bouncycastle.asn1.BEROctetStringParser

Check for 'ASN1OctetStringParser' instead

org.bouncycastle.asn1.BERSequenceParser

Check for 'ASN1SequenceParser' instead

org.bouncycastle.asn1.BERSetParser

Check for 'ASN1SetParser' instead

org.bouncycastle.asn1.DEROctetStringParser

Check for 'ASN1OctetStringParser' instead

org.bouncycastle.asn1.DLBitStringParser

Check for 'ASN1BitStringParser' instead

org.bouncycastle.asn1.DLSequenceParser

Check for 'ASN1SequenceParser' instead

org.bouncycastle.asn1.DLSetParser

Check for 'ASN1SetParser' instead

Returns:

the hash value as a BIT STRING
org.bouncycastle.asn1.bc.ExternalValue.getHashVal
()

use getHash(), the internal encoding is now an OCTET STRING

org.bouncycastle.asn1.ocsp.ResponseData.ResponseData(ResponderID responderID, ASN1GeneralizedTime producedAt, ASN1Sequence responses, X509Extensions responseExtensions)

use method taking Extensions

org.bouncycastle.asn1.ocsp.SingleResponse.SingleResponse(CertID certID, CertStatus certStatus, ASN1GeneralizedTime thisUpdate, ASN1GeneralizedTime nextUpdate, X509Extensions singleExtensions)

use method taking ASN1GeneralizedTime and Extensions

org.bouncycastle.asn1.ocsp.TBSRequest.TBSRequest(GeneralName requestorName, ASN1Sequence requestList, X509Extensions requestExtensions)

use method taking Extensions

org.bouncycastle.asn1.pkcs.IssuerAndSerialNumber.IssuerAndSerialNumber(X509Name name, BigInteger certSerialNumber)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.pkcs.IssuerAndSerialNumber.IssuerAndSerialNumber(X509Name name, ASN1Integer certSerialNumber)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.pkcs.RSAPrivateKeyStructure.getInstance(ASN1TaggedObject obj, boolean explicit)

Deprecated as a consequence of RSAPrivateKeyStructure being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.pkcs.RSAPrivateKeyStructure.getInstance(Object obj)

Deprecated as a consequence of RSAPrivateKeyStructure being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.sec.ECPrivateKey.ECPrivateKey(BigInteger key)

use constructor which takes orderBitLength to guarantee correct encoding.

org.bouncycastle.asn1.sec.ECPrivateKey.ECPrivateKey(BigInteger key, ASN1Encodable parameters)

use constructor which takes orderBitLength to guarantee correct encoding.

org.bouncycastle.asn1.sec.ECPrivateKey.ECPrivateKey(BigInteger key, ASN1BitString publicKey, ASN1Encodable parameters)

use constructor which takes orderBitLength to guarantee correct encoding.

org.bouncycastle.asn1.sec.ECPrivateKey.getParameters()

Use getParametersObject() instead and getInstance methods or similar to get the object at the desired type.

org.bouncycastle.asn1.x500.X500Name.X500Name(X500NameStyle style, X500Name name)

use the getInstance() method that takes a style.

org.bouncycastle.asn1.x509.AuthorityKeyIdentifier.AuthorityKeyIdentifier(SubjectPublicKeyInfo spki)

create the extension using org.bouncycastle.cert.X509ExtensionUtils

org.bouncycastle.asn1.x509.AuthorityKeyIdentifier.AuthorityKeyIdentifier(SubjectPublicKeyInfo spki, GeneralNames name, BigInteger serialNumber)

create the extension using org.bouncycastle.cert.X509ExtensionUtils

org.bouncycastle.asn1.x509.ExtendedKeyUsage.ExtendedKeyUsage(Vector<E> usages)

use KeyPurposeId[] constructor.

org.bouncycastle.asn1.x509.PolicyMappings.PolicyMappings(Hashtable<K, V>
a HashMap value that maps String oids to other String oids.
mappings
)

use CertPolicyId constructors.

org.bouncycastle.asn1.x509.PolicyQualifierInfo.PolicyQualifierInfo(ASN1Sequence
PolicyQualifierInfo X509 structure encoded as an ASN1Sequence.
as
)

use PolicyQualifierInfo.getInstance()

org.bouncycastle.asn1.x509.RSAPublicKeyStructure

use org.bouncycastle.asn1.pkcs.RSAPublicKey

org.bouncycastle.asn1.x509.RSAPublicKeyStructure.getInstance(ASN1TaggedObject obj, boolean explicit)

Deprecated as a consequence of RSAPublicKeyStructure being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.RSAPublicKeyStructure.getInstance(Object obj)

Deprecated as a consequence of RSAPublicKeyStructure being deprecated. See corresponding docs for further information.

Returns:

the public key as an ASN.1 primitive.
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKey
()

use parsePublicKey

org.bouncycastle.asn1.x509.TBSCertificateStructure.extensions

Deprecated as a consequence of X509Extensions being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.TBSCertificateStructure.getExtensions()

Deprecated as a consequence of X509Extensions being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.TBSCertificateStructure.getInstance(ASN1TaggedObject obj, boolean explicit)

Deprecated as a consequence of TBSCertificateStructure being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.TBSCertificateStructure.getInstance(Object obj)

Deprecated as a consequence of TBSCertificateStructure being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.V2TBSCertListGenerator.setExtensions(X509Extensions extensions)

Deprecated as a consequence of X509Extensions being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.X509CertificateStructure

use org.bouncycastle.asn1.x509.Certificate

org.bouncycastle.asn1.x509.X509CertificateStructure.getInstance(ASN1TaggedObject obj, boolean explicit)

Deprecated as a consequence of X509CertificateStructure being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.X509CertificateStructure.getInstance(Object obj)

Deprecated as a consequence of X509CertificateStructure being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.X509CertificateStructure.getTBSCertificate()

Deprecated as a consequence of TBSCertificateStructure being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.X509CertificateStructure.tbsCert

Deprecated as a consequence of TBSCertificateStructure being deprecated. See corresponding docs for further information.

Returns:

the object the value string contains
org.bouncycastle.asn1.x509.X509Extension.convertValueToObject
(X509Extension
the extension to parse
ext
)

Deprecated as a consequence of X509Extension being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.X509Extensions.X509Extensions(Vector<E> ordering, Hashtable<K, V> extensions)

use Extensions

org.bouncycastle.asn1.x509.X509Extensions.X509Extensions(Vector<E>
a vector of the object identifiers.
objectIDs
,
Vector<E>
a vector of the extension values.
values
)

use Extensions

org.bouncycastle.asn1.x509.X509Extensions.equivalent(X509Extensions other)

Deprecated as a consequence of X509Extensions being deprecated. See corresponding docs for further information.

Returns:

the extension if it's present, null otherwise.
org.bouncycastle.asn1.x509.X509Extensions.getExtension
(ASN1ObjectIdentifier oid)

Deprecated as a consequence of X509Extension being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.X509Extensions.getInstance(ASN1TaggedObject obj, boolean explicit)

Deprecated as a consequence of X509Extensions being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.X509Extensions.getInstance(Object obj)

Deprecated as a consequence of X509Extensions being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.X509ExtensionsGenerator

use org.bouncycastle.asn1.x509.ExtensionsGenerator

Returns:

an X09Extensions object.
org.bouncycastle.asn1.x509.X509ExtensionsGenerator.generate
()

Deprecated as a consequence of X509Extensions being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.X509Name

use org.bouncycastle.asn1.x500.X500Name.

org.bouncycastle.asn1.x509.X509Name.X509Name(Hashtable<K, V> attributes)

use an ordered constructor! The hashtable ordering is rarely correct

org.bouncycastle.asn1.x509.X509Name.X509Name(Vector<E> ordering, Hashtable<K, V> attributes, X509NameEntryConverter converter)

use X500Name, X500NameBuilder

org.bouncycastle.asn1.x509.X509Name.X509Name(Vector<E> oids, Vector<E> values)

use X500Name, X500NameBuilder

org.bouncycastle.asn1.x509.X509Name.X509Name(Vector<E> oids, Vector<E> values, X509NameEntryConverter converter)

use X500Name, X500NameBuilder

org.bouncycastle.asn1.x509.X509Name.X509Name(String dirName)

use X500Name, X500NameBuilder

org.bouncycastle.asn1.x509.X509Name.X509Name(String dirName, X509NameEntryConverter converter)

use X500Name, X500NameBuilder

org.bouncycastle.asn1.x509.X509Name.X509Name(boolean reverse, String dirName)

use X500Name, X500NameBuilder

org.bouncycastle.asn1.x509.X509Name.X509Name(boolean reverse, String dirName, X509NameEntryConverter converter)

use X500Name, X500NameBuilder

org.bouncycastle.asn1.x509.X509Name.X509Name(boolean
true if we should start scanning from the end (RFC 2553).
reverse
,
Hashtable<K, V>
table of names and their oids.
lookUp
,
String
the X.500 string to be parsed.
dirName
)

use X500Name, X500NameBuilder

Returns:

the X509Name
org.bouncycastle.asn1.x509.X509Name.getInstance
(ASN1TaggedObject
tag object holding name.
obj
,
boolean
true if explicitly tagged false otherwise.
explicit
)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x509.X509Name.getInstance(Object obj)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x9.DHDomainParameters.DHDomainParameters(BigInteger p, BigInteger g, BigInteger q, BigInteger j, DHValidationParms validationParms)

Deprecated as a consequence of DHValidationParms being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x9.DHDomainParameters.DHDomainParameters(ASN1Integer p, ASN1Integer g, ASN1Integer q, ASN1Integer j, DHValidationParms validationParms)

Deprecated as a consequence of DHValidationParms being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x9.DHDomainParameters.getInstance(ASN1TaggedObject obj, boolean explicit)

Deprecated as a consequence of DHDomainParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x9.DHDomainParameters.getInstance(Object obj)

Deprecated as a consequence of DHDomainParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x9.DHDomainParameters.getValidationParms()

Deprecated as a consequence of DHValidationParms being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x9.DHDomainParameters.validationParms

Deprecated as a consequence of DHValidationParms being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x9.DHValidationParms.getInstance(ASN1TaggedObject obj, boolean explicit)

Deprecated as a consequence of DHValidationParms being deprecated. See corresponding docs for further information.

org.bouncycastle.asn1.x9.DHValidationParms.getInstance(Object obj)

Deprecated as a consequence of DHValidationParms being deprecated. See corresponding docs for further information.

org.bouncycastle.crypto.AsymmetricCipherKeyPair.AsymmetricCipherKeyPair(CipherParameters
a public key parameters object.
publicParam
,
CipherParameters
the corresponding private key parameters.
privateParam
)

use AsymmetricKeyParameter

org.bouncycastle.crypto.BufferedBlockCipher.BufferedBlockCipher(BlockCipher
the underlying block cipher this buffering object wraps.
cipher
)

use the constructor on DefaultBufferedBlockCipher.

org.bouncycastle.crypto.agreement.jpake.JPAKEUtil.calculateS(char[] password)

Use version including the modulus instead.

org.bouncycastle.crypto.engines.AESFastEngine

unfortunately this class is has a few side channel issues. In an environment where encryption/decryption may be closely observed it should not be used.

org.bouncycastle.crypto.engines.ThreefishEngine.bytesToWord(final byte[] bytes, final int off)

Will be removed

org.bouncycastle.crypto.engines.ThreefishEngine.wordToBytes(final long word, final byte[] bytes, final int off)

Will be removed

org.bouncycastle.crypto.kems.ECIESKeyEncapsulation

use ECIESKEMGenerator, ECIESKEMExtractor

Returns:

the session key.
org.bouncycastle.crypto.kems.ECIESKeyEncapsulation.decrypt
(byte[]
the input buffer for the encapsulated key.
in
,
int
the offset for the input buffer.
inOff
,
int
the length of the encapsulated key.
inLen
,
int
the length of the session key.
keyLen
)

use ECIESKEMExtractor

Returns:

the session key.
org.bouncycastle.crypto.kems.ECIESKeyEncapsulation.decrypt
(byte[]
the input buffer for the encapsulated key.
in
,
int
the length of the session key.
keyLen
)

use ECIESKEMExtractor

Returns:

the random session key.
org.bouncycastle.crypto.kems.ECIESKeyEncapsulation.encrypt
(byte[]
the output buffer for the encapsulated key.
out
,
int
the offset for the output buffer.
outOff
,
int
the length of the session key.
keyLen
)

use ECIESKEMGenerator

Returns:

the random session key.
org.bouncycastle.crypto.kems.ECIESKeyEncapsulation.encrypt
(byte[]
the output buffer for the encapsulated key.
out
,
int
the length of the session key.
keyLen
)

use ECIESKEMGenerator

org.bouncycastle.crypto.kems.RSAKeyEncapsulation

use RSAKEMGenerator, RSAKEMExtractor

org.bouncycastle.crypto.macs.BlockCipherMac.BlockCipherMac(BlockCipher
the cipher to be used as the basis of the MAC generation.
cipher
)

use CBCBlockCipherMac

org.bouncycastle.crypto.macs.BlockCipherMac.BlockCipherMac(BlockCipher
the cipher to be used as the basis of the MAC generation.
cipher
,
int
the size of the MAC in bits, must be a multiple of 8.
macSizeInBits
)

use CBCBlockCipherMac

org.bouncycastle.crypto.macs.OldHMac.OldHMac(Digest digest)

uses incorrect pad for SHA-512 and SHA-384 use HMac.

org.bouncycastle.crypto.modes.CBCBlockCipher.CBCBlockCipher(BlockCipher
the block cipher to be used as the basis of chaining.
cipher
)

use the CBCBlockCipher.newInstance() static method.

org.bouncycastle.crypto.modes.CCMBlockCipher.CCMBlockCipher(BlockCipher
the block cipher to be used.
c
)

use the CCMBlockCipher.newInstance() static method.

org.bouncycastle.crypto.modes.CFBBlockCipher.CFBBlockCipher(BlockCipher
the block cipher to be used as the basis of the feedback mode.
cipher
,
int
the block size in bits (note: a multiple of 8)
bitBlockSize
)

use the equivalent CFBBlockCipher.newInstance() static method.

org.bouncycastle.crypto.modes.GCMBlockCipher.GCMBlockCipher(BlockCipher
the base cipher.
c
)

use the GCMBlockCipher.newInstance() static method.

org.bouncycastle.crypto.modes.GCMBlockCipher.GCMBlockCipher(BlockCipher
the base cipher.
c
,
GCMMultiplier
the GCM multiplier to use.
m
)

use the CBCBlockCipher.newInstance() static method.

org.bouncycastle.crypto.modes.PaddedBlockCipher

use org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher instead.

org.bouncycastle.crypto.modes.SICBlockCipher.SICBlockCipher(BlockCipher
the block cipher to be used.
c
)

use newInstance() method.

org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters.sign(int algorithm, Ed25519PublicKeyParameters publicKey, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff)

use overload that doesn't take a public key

org.bouncycastle.crypto.params.Ed448PrivateKeyParameters.sign(int algorithm, Ed448PublicKeyParameters publicKey, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff)

use overload that doesn't take a public key

org.bouncycastle.crypto.util.Pack

use org.bouncycastle.util.pack

org.bouncycastle.jcajce.BCFKSStoreParameter

This class does not support configuration on creation, use BCFKSLoadStoreParameter for best results.

org.bouncycastle.jcajce.PKIXExtendedParameters.getDate()

Use 'getValidityDate' instead (which can return null).

org.bouncycastle.jcajce.provider.asymmetric.dsa.DSASigner.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.jcajce.provider.asymmetric.dstu.SignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.jcajce.provider.asymmetric.ecgost.SignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.jcajce.provider.asymmetric.ecgost12.ECGOST2012SignatureSpi256.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with "#engineSetParameter(java.security.spec.AlgorithmParameterSpec)"

org.bouncycastle.jcajce.provider.asymmetric.ecgost12.ECGOST2012SignatureSpi512.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.jcajce.provider.asymmetric.gost.SignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.jcajce.provider.asymmetric.rsa.DigestSignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.jcajce.provider.asymmetric.util.DSABase.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with "#engineSetParameter(java.security.spec.AlgorithmParameterSpec)"

org.bouncycastle.jcajce.provider.config.PKCS12StoreParameter

use org.bouncycastle.jcajce.PKCS12StoreParameter

org.bouncycastle.jcajce.util.JcaJceHelper.createDigest(String algorithm)

Use createMessageDigest instead

Returns:

an ASN.1 object representing the primitives making up the params parameter.
org.bouncycastle.jcajce.util.JcaJceUtils.extractParameters
(AlgorithmParameters
the object to get the encoding used to create the return value.
params
)

use AlgorithmParametersUtils.extractParameters(AlgorithmParameters params)

Returns:

a string representing the standard name - the OID as a string if none available.
org.bouncycastle.jcajce.util.JcaJceUtils.getDigestAlgName
(ASN1ObjectIdentifier
the OID of the digest algorithm of interest.
digestAlgOID
)

use MessageDigestUtils,getDigestName()

org.bouncycastle.jcajce.util.JcaJceUtils.loadParameters(AlgorithmParameters
the AlgorithmParameters object to be initialised.
params
,
ASN1Encodable
the ASN.1 encodable to initialise params with.
sParams
)

use AlgorithmParametersUtils.loadParameters(AlgorithmParameters params, ASN1Encodable sParams)

org.bouncycastle.jcajce.util.NamedJcaJceHelper.createDigest(String algorithm)

Use createMessageDigest instead

org.bouncycastle.jce.PKCS10CertificationRequest

use classes in org.bouncycastle.pkcs.

org.bouncycastle.jce.PKCS10CertificationRequest.PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.PKCS10CertificationRequest.PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.PKCS10CertificationRequest.convertName(X500Principal name)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.PrincipalUtil.getIssuerX509Principal(X509Certificate cert)

Deprecated as a consequence of X509Principal being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.PrincipalUtil.getIssuerX509Principal(X509CRL crl)

Deprecated as a consequence of X509Principal being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.PrincipalUtil.getSubjectX509Principal(X509Certificate cert)

Deprecated as a consequence of X509Principal being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.X509Principal

use the X500Name class.

org.bouncycastle.jce.X509Principal.X509Principal(X509Name name)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.interfaces.MQVPrivateKey

use MQVParameterSpec for passing the ephemeral key.

org.bouncycastle.jce.interfaces.MQVPublicKey

use MQVParameterSpec for passing the ephemeral key.

org.bouncycastle.jce.provider.JDKPKCS12StoreParameter

use org.bouncycastle.jcajce.config.PKCS12StoreParameter

org.bouncycastle.jce.provider.PKIXAttrCertPathBuilderSpi.build(X509AttributeCertificate attrCert, X509Certificate tbvCert, PKIXExtendedBuilderParameters pkixParams, List<E> tbvPath)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.provider.PKIXAttrCertPathBuilderSpi.findCertificates(X509AttributeCertStoreSelector certSelect, List<E> certStores)

Deprecated as a consequence of X509AttributeCertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.provider.RFC3281CertPathUtilities.additionalChecks(X509AttributeCertificate attrCert, Set<E> prohibitedACAttributes, Set<E> necessaryACAttributes)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.provider.RFC3281CertPathUtilities.checkCRL(DistributionPoint
The distribution point to consider.
dp
,
X509AttributeCertificate
The attribute certificate which should be checked.
attrCert
,
PKIXExtendedParameters
PKIX parameters.
paramsPKIX
,
Date
The date when the certificate revocation status should be checked.
currentDate
,
Date validityDate, X509Certificate
Certificate to check if it is revoked.
issuerCert
,
CertStatus certStatus, ReasonsMask
The reasons mask which is already checked.
reasonMask
,
List<E>
The certificates of the certification path to be checked.
certPathCerts
,
JcaJceHelper helper)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.provider.RFC3281CertPathUtilities.checkCRLs(X509AttributeCertificate
Attribute certificate to check if it is revoked.
attrCert
,
PKIXExtendedParameters
PKIX parameters.
paramsPKIX
,
Date currentDate, Date
The date when the certificate revocation status should be checked.
validityDate
,
X509Certificate
The issuer certificate of the attribute certificate attrCert.
issuerCert
,
List<E>
The certificates of the certification path to be checked.
certPathCerts
,
JcaJceHelper helper)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

Returns:

The certificate path of the holder certificate.
org.bouncycastle.jce.provider.RFC3281CertPathUtilities.processAttrCert1
(X509AttributeCertificate
the attribute certificate.
attrCert
,
PKIXExtendedParameters
The PKIX parameters.
pkixParams
)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.provider.RFC3281CertPathUtilities.processAttrCert5(X509AttributeCertificate attrCert, Date validityDate)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.provider.RFC3281CertPathUtilities.processAttrCert7(X509AttributeCertificate attrCert, CertPath certPath, CertPath holderCertPath, PKIXExtendedParameters pkixParams, Set<E> attrCertCheckers)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.provider.X509AttrCertParser.getCertificate()

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.provider.X509AttrCertParser.readDERCertificate(InputStream in)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.provider.X509AttrCertParser.readPEMCertificate(InputStream in)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.provider.X509CRLObject

Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.

org.bouncycastle.jce.provider.X509CertParser

use CertificateFactory or the PEMParser in the openssl package (pkix jar).

org.bouncycastle.jce.provider.X509CertificateObject

Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.

org.bouncycastle.jce.provider.X509StoreLDAPCerts.getCertificatesFromCrossCertificatePairs(X509CertStoreSelector xselector)

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.jce.spec.GOST28147ParameterSpec

use org.bouncycastle.jcajce.spec.GOST28147ParameterSpec

org.bouncycastle.jce.spec.RepeatedSecretKeySpec

use super class org.bouncycastle.jcajce.spec.RepeatedSecretKeySpec

org.bouncycastle.math.ec.ECCurve.F2m.F2m(int
The exponent m of F2m.
m
,
int
The integer k where xm + xk + 1 represents the reduction polynomial f(z).
k
,
BigInteger
The coefficient a in the Weierstrass equation for non-supersingular elliptic curves over F2m.
a
,
BigInteger
The coefficient b in the Weierstrass equation for non-supersingular elliptic curves over F2m.
b
)

use constructor taking order/cofactor

org.bouncycastle.math.ec.ECCurve.F2m.F2m(int
The exponent m of F2m.
m
,
int
The integer k1 where xm + xk3 + xk2 + xk1 + 1 represents the reduction polynomial f(z).
k1
,
int
The integer k2 where xm + xk3 + xk2 + xk1 + 1 represents the reduction polynomial f(z).
k2
,
int
The integer k3 where xm + xk3 + xk2 + xk1 + 1 represents the reduction polynomial f(z).
k3
,
BigInteger
The coefficient a in the Weierstrass equation for non-supersingular elliptic curves over F2m.
a
,
BigInteger
The coefficient b in the Weierstrass equation for non-supersingular elliptic curves over F2m.
b
)

use constructor taking order/cofactor

org.bouncycastle.math.ec.ECCurve.Fp.Fp(BigInteger q, BigInteger a, BigInteger b)

use constructor taking order/cofactor

Returns:

the OID for the parameter set.
org.bouncycastle.pqc.crypto.sphincsplus.SPHINCSPlusParameters.getID
(SPHINCSPlusParameters
the parameters of interest.
params
)

Use getID() instead

org.bouncycastle.pqc.crypto.util.PrivateKeyInfoFactory.xmssCreateKeyStructure(XMSSPrivateKeyParameters keyParams)

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.util.PrivateKeyInfoFactory.xmssmtCreateKeyStructure(XMSSMTPrivateKeyParameters keyParams)

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

Returns:

XMSS private key.
org.bouncycastle.pqc.crypto.xmss.XMSS.exportPrivateKey
()

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

Returns:

XMSS public key.
org.bouncycastle.pqc.crypto.xmss.XMSS.exportPublicKey
()

Deprecated as a consequence of XMSSPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSS.getPrivateKey()

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSS.importState(XMSSPrivateKeyParameters privateKey, XMSSPublicKeyParameters publicKey)

Deprecated as a consequence of XMSSPrivateKeyParameters and XMSSPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSS.privateKey

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSS.publicKey

Deprecated as a consequence of XMSSPublicKeyParameters being deprecated. See corresponding docs for further information.

Returns:

XMSS private key.
org.bouncycastle.pqc.crypto.xmss.XMSSKeyPairGenerator.generatePrivateKey
(XMSSParameters params, SecureRandom prng)

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMT.importState(XMSSMTPrivateKeyParameters privateKey, XMSSMTPublicKeyParameters publicKey)

Deprecated as a consequence of XMSSMTPrivateKeyParameters and XMSSMTPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMT.privateKey

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMT.publicKey

Deprecated as a consequence of XMSSMTPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMTKeyPairGenerator.generatePrivateKey(BDSStateMap bdsState)

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMTPrivateKeyParameters.Builder.build()

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

Returns:

a key based on the current key that can be used usageCount times.
org.bouncycastle.pqc.crypto.xmss.XMSSMTPrivateKeyParameters.extractKeyShard
(int
the number of usages the key should have.
usageCount
)

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMTPrivateKeyParameters.getNextKey()

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMTPrivateKeyParameters.rollKey()

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMTPrivateKeyParameters.toByteArray()

use getEncoded() - this method will become private.

org.bouncycastle.pqc.crypto.xmss.XMSSMTPublicKeyParameters.Builder.build()

Deprecated as a consequence of XMSSMTPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMTPublicKeyParameters.toByteArray()

use getEncoded() - this method will become private.

org.bouncycastle.pqc.crypto.xmss.XMSSMTSignature.Builder.build()

Deprecated as a consequence of XMSSMTSignature being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMTSigner.privateKey

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSMTSigner.publicKey

Deprecated as a consequence of XMSSMTPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSPrivateKeyParameters.Builder.build()

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

Returns:

a key based on the current key that can be used usageCount times.
org.bouncycastle.pqc.crypto.xmss.XMSSPrivateKeyParameters.extractKeyShard
(int
the number of usages the key should have.
usageCount
)

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSPrivateKeyParameters.getNextKey()

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSPrivateKeyParameters.rollKey()

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSPrivateKeyParameters.toByteArray()

use getEncoded() - this method will become private.

org.bouncycastle.pqc.crypto.xmss.XMSSPublicKeyParameters.Builder.build()

Deprecated as a consequence of XMSSPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSPublicKeyParameters.toByteArray()

use getEncoded() - this method will become private.

org.bouncycastle.pqc.crypto.xmss.XMSSReducedSignature.Builder.build()

Deprecated as a consequence of XMSSReducedSignature being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSSignature.Builder.build()

Deprecated as a consequence of XMSSSignature being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSSignature.toByteArray()

use getEncoded() this method will become private.

org.bouncycastle.pqc.crypto.xmss.XMSSSigner.privateKey

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.crypto.xmss.XMSSSigner.publicKey

Deprecated as a consequence of XMSSPublicKeyParameters being deprecated. See corresponding docs for further information.

Returns:

Root node calculated from signature.
org.bouncycastle.pqc.crypto.xmss.XMSSVerifierUtil.getRootNodeFromSignature
(WOTSPlus wotsPlus, int height, byte[]
Message digest.
messageDigest
,
XMSSReducedSignature
XMSS signature.
signature
,
OTSHashAddress otsHashAddress, int indexLeaf)

Deprecated as a consequence of XMSSReducedSignature being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.interfaces.StateAwareSignature

it's better to avoid this and use extractKeyShard methods where possible.

org.bouncycastle.pqc.jcajce.provider.dilithium.SignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.pqc.jcajce.provider.falcon.SignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.pqc.jcajce.provider.frodo.FrodoCipherSpi.kemParameterSpec

Deprecated as a consequence of KEMParameterSpec being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.lms.LMSSignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.pqc.jcajce.provider.ntruprime.NTRULPRimeCipherSpi.kemParameterSpec

Deprecated as a consequence of KEMParameterSpec being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.ntruprime.SNTRUPrimeCipherSpi.kemParameterSpec

Deprecated as a consequence of KEMParameterSpec being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.picnic.SignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.pqc.jcajce.provider.rainbow.SignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.pqc.jcajce.provider.saber.SABERCipherSpi.kemParameterSpec

Deprecated as a consequence of KEMParameterSpec being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.sphincs.SignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.pqc.jcajce.provider.sphincsplus.SignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.pqc.jcajce.provider.xmss.BCXMSSMTPrivateKey.BCXMSSMTPrivateKey(ASN1ObjectIdentifier treeDigest, XMSSMTPrivateKeyParameters keyParams)

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.BCXMSSMTPrivateKey.keyParams

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.BCXMSSMTPublicKey.BCXMSSMTPublicKey(ASN1ObjectIdentifier treeDigest, XMSSMTPublicKeyParameters keyParams)

Deprecated as a consequence of XMSSMTPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.BCXMSSMTPublicKey.keyParams

Deprecated as a consequence of XMSSMTPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.BCXMSSPrivateKey.BCXMSSPrivateKey(ASN1ObjectIdentifier treeDigest, XMSSPrivateKeyParameters keyParams)

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.BCXMSSPrivateKey.keyParams

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.BCXMSSPublicKey.BCXMSSPublicKey(ASN1ObjectIdentifier treeDigest, XMSSPublicKeyParameters keyParams)

Deprecated as a consequence of XMSSPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.BCXMSSPublicKey.keyParams

Deprecated as a consequence of XMSSPublicKeyParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.generic

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.withSha256

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.withSha256andPrehash

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.withSha512

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.withSha512andPrehash

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.withShake128

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.withShake128_512andPrehash

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.withShake128andPrehash

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.withShake256

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.withShake256_1024andPrehash

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSMTSignatureSpi.withShake256andPrehash

Deprecated as a consequence of XMSSMTSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.generic

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.withSha256

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.withSha256andPrehash

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.withSha512

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.withSha512andPrehash

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.withShake128

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.withShake128_512andPrehash

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.withShake128andPrehash

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.withShake256

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.withShake256_1024andPrehash

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi.withShake256andPrehash

Deprecated as a consequence of XMSSSignatureSpi being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.spec.LMSHSSParameterSpec.LMSHSSParameterSpec(LMSParameterSpec[]
the LMS parameter specs for each level of the hierarchy.
specs
)

Deprecated as a consequence of LMSParameterSpec being deprecated. See corresponding docs for further information.

Returns:

the HSS component LMS parameter specs.
org.bouncycastle.pqc.jcajce.spec.LMSHSSParameterSpec.getLMSSpecs
()

Deprecated as a consequence of LMSParameterSpec being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.jcajce.spec.LMSHSSParameterSpec.specs

Deprecated as a consequence of LMSParameterSpec being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.legacy.crypto.qtesla.IntSlicer

Remove when Post-Quantum Standardization project has finished and standard is published.

org.bouncycastle.pqc.legacy.crypto.qtesla.IntSlicer.copy()

Deprecated as a consequence of IntSlicer being deprecated. See corresponding docs for further information.

org.bouncycastle.pqc.legacy.crypto.qtesla.IntSlicer.from(int o)

Deprecated as a consequence of IntSlicer being deprecated. See corresponding docs for further information.

Returns:

log_2(x)
org.bouncycastle.pqc.legacy.math.linearalgebra.IntegerFunctions.log
(double
any double value
x
)

use MathFunctions.log(double) instead

Returns:

log_2(x)
org.bouncycastle.pqc.legacy.math.linearalgebra.IntegerFunctions.log
(long
any long value >=1
x
)

use MathFunctions.log(long) instead

Returns:

log_2(arg)
org.bouncycastle.pqc.legacy.math.linearalgebra.IntegerFunctions.logBKM
(double
a double value with 1<= arg<= 4.768462058
arg
)

use MathFunctions.logBKM(double) instead

org.bouncycastle.util.Fingerprint.Fingerprint(byte[]
original data to calculate the fingerprint from.
source
,
boolean
use the old SHA512/160 calculation.
useSHA512t
)

use the SHAKE only version.

Returns:

a byte array containing a 20 byte fingerprint.
org.bouncycastle.util.Fingerprint.calculateFingerprintSHA512_160
(byte[]
data to base the fingerprint on.
input
)

use the SHAKE based version.

org.bouncycastle.util.Pack.longToBigEndian(long
The number
value
,
byte[]
The target.
bs
,
int
Position in target to start.
off
,
int
number of bytes to write.
bytes
)

Will be removed

org.bouncycastle.x509.AttributeCertificateHolder

use org.bouncycastle.cert.AttributeCertificateHolder

org.bouncycastle.x509.AttributeCertificateHolder.AttributeCertificateHolder(X509Principal issuerName, BigInteger serialNumber)

Deprecated as a consequence of X509Principal being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.AttributeCertificateHolder.AttributeCertificateHolder(X509Principal principal)

Deprecated as a consequence of X509Principal being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.AttributeCertificateHolder.generateGeneralNames(X509Principal principal)

Deprecated as a consequence of X509Principal being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.AttributeCertificateHolder.matchesDN(X509Principal subject, GeneralNames targets)

Deprecated as a consequence of X509Principal being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.AttributeCertificateIssuer

use org.bouncycastle.cert.AttributeCertificateIssuer

org.bouncycastle.x509.AttributeCertificateIssuer.AttributeCertificateIssuer(X509Principal principal)

Deprecated as a consequence of X509Principal being deprecated. See corresponding docs for further information.

Returns:

a Collection of all found X509Certificate or org.bouncycastle.x509.X509AttributeCertificate objects. May be empty but never null.
org.bouncycastle.x509.CertPathValidatorUtilities.findCertificates
(X509CertStoreSelector
a Selector object that will be used to select the certificates
certSelect
,
List<E>
a List containing only X509Store objects. These are used to search for certificates.
certStores
)

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.CertPathValidatorUtilities.findCertificates(X509AttributeCertStoreSelector certSelect, List<E> certStores)

Deprecated as a consequence of X509AttributeCertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.ExtendedPKIXBuilderParameters

use PKIXExtendedBuilderParameters

Returns:

An ExtendedPKIXBuilderParameters instance.
org.bouncycastle.x509.ExtendedPKIXBuilderParameters.getInstance
(PKIXParameters
The PKIX parameters to create a copy of.
pkixParams
)

Deprecated as a consequence of ExtendedPKIXParameters being deprecated. See corresponding docs for further information.

Returns:

an extended PKIX params object
org.bouncycastle.x509.ExtendedPKIXParameters.getInstance
(PKIXParameters
The given PKIXParameters
pkixParams
)

Deprecated as a consequence of ExtendedPKIXParameters being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.PKIXAttrCertChecker.check(X509AttributeCertificate
The attribute certificate to be checked.
attrCert
,
CertPath
The certificate path which belongs to the attribute certificate issuer public key certificate.
certPath
,
CertPath
The certificate path which belongs to the holder certificate.
holderCertPath
,
Collection<E>
a Collection of OID strings representing the current set of unresolved critical extensions
unresolvedCritExts
)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.PKIXCertPathReviewer

use org.bouncycastle.pkix.jcajce.PKIXCertPathReviewer in the bcpkix package

org.bouncycastle.x509.X509Attribute

see X509CertificateHolder class in the PKIX package.

org.bouncycastle.x509.X509AttributeCertStoreSelector

use org.bouncycastle.cert.X509AttributeCertificateSelector and org.bouncycastle.cert.X509AttributeCertificateSelectorBuilder.

org.bouncycastle.x509.X509AttributeCertStoreSelector.attributeCert

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

Returns:

Returns the attribute certificate.
org.bouncycastle.x509.X509AttributeCertStoreSelector.getAttributeCert
()

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

Returns:

Returns the holder.
org.bouncycastle.x509.X509AttributeCertStoreSelector.getHolder
()

Deprecated as a consequence of AttributeCertificateHolder being deprecated. See corresponding docs for further information.

Returns:

Returns the issuer.
org.bouncycastle.x509.X509AttributeCertStoreSelector.getIssuer
()

Deprecated as a consequence of AttributeCertificateIssuer being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509AttributeCertStoreSelector.holder

Deprecated as a consequence of AttributeCertificateHolder being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509AttributeCertStoreSelector.issuer

Deprecated as a consequence of AttributeCertificateIssuer being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509AttributeCertStoreSelector.setAttributeCert(X509AttributeCertificate
The attribute certificate to set.
attributeCert
)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509AttributeCertStoreSelector.setHolder(AttributeCertificateHolder
The holder to set.
holder
)

Deprecated as a consequence of AttributeCertificateHolder being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509AttributeCertStoreSelector.setIssuer(AttributeCertificateIssuer
The issuer to set.
issuer
)

Deprecated as a consequence of AttributeCertificateIssuer being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509AttributeCertificate

use X509CertificateHolder class in the PKIX package.

Returns:

an array of attributes.
org.bouncycastle.x509.X509AttributeCertificate.getAttributes
()

Deprecated as a consequence of X509Attribute being deprecated. See corresponding docs for further information.

Returns:

an array of matched attributes, null if there is no match.
org.bouncycastle.x509.X509AttributeCertificate.getAttributes
(String
the object identifier we wish to match.
oid
)

Deprecated as a consequence of X509Attribute being deprecated. See corresponding docs for further information.

Returns:

the holder.
org.bouncycastle.x509.X509AttributeCertificate.getHolder
()

Deprecated as a consequence of AttributeCertificateHolder being deprecated. See corresponding docs for further information.

Returns:

the issuer details.
org.bouncycastle.x509.X509AttributeCertificate.getIssuer
()

Deprecated as a consequence of AttributeCertificateIssuer being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509CRLStoreSelector.attrCertChecking

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

Returns:

Returns the attribute certificate being checked.
org.bouncycastle.x509.X509CRLStoreSelector.getAttrCertificateChecking
()

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509CRLStoreSelector.setAttrCertificateChecking(X509AttributeCertificate
the X509AttributeCertificate being checked (or null)
attrCert
)

Deprecated as a consequence of X509AttributeCertificate being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509CertPairStoreSelector.forwardSelector

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

Returns:

Returns the certicate selector for the forward part.
org.bouncycastle.x509.X509CertPairStoreSelector.getForwardSelector
()

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

Returns:

Returns the reverse selector for teh reverse part.
org.bouncycastle.x509.X509CertPairStoreSelector.getReverseSelector
()

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509CertPairStoreSelector.reverseSelector

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509CertPairStoreSelector.setForwardSelector(X509CertStoreSelector
The certificate selector for the forward part in the pair.
forwardSelector
)

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509CertPairStoreSelector.setReverseSelector(X509CertStoreSelector
The certificate selector for the reverse part in the pair.
reverseSelector
)

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509CertStoreSelector

use the classes under org.bouncycastle.cert.selector

Returns:

An instance of an X509CertStoreSelector.
org.bouncycastle.x509.X509CertStoreSelector.getInstance
(X509CertSelector
A X509CertSelector instance.
selector
)

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509Store

use CollectionStore - this class will be removed.

org.bouncycastle.x509.X509Store.createStore(X509Util.Implementation impl, X509StoreParameters parameters)

Deprecated as a consequence of X509Store being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509Store.getInstance(String type, X509StoreParameters parameters)

Deprecated as a consequence of X509Store being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509Store.getInstance(String type, X509StoreParameters parameters, String provider)

Deprecated as a consequence of X509Store being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509Store.getInstance(String type, X509StoreParameters parameters, Provider provider)

Deprecated as a consequence of X509Store being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509Util.convertPrincipal(X500Principal principal)

Deprecated as a consequence of X509Principal being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V1CertificateGenerator

use org.bouncycastle.cert.X509v1CertificateBuilder.

org.bouncycastle.x509.X509V1CertificateGenerator.setIssuerDN(X509Name issuer)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(X509Name subject)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V2AttributeCertificate

use org.bouncycastle.cert.X509AttributeCertificateHolder

org.bouncycastle.x509.X509V2AttributeCertificate.getAttributes()

Deprecated as a consequence of X509Attribute being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V2AttributeCertificate.getAttributes(String
the object identifier we wish to match.
oid
)

Deprecated as a consequence of X509Attribute being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V2AttributeCertificate.getHolder()

Deprecated as a consequence of AttributeCertificateHolder being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V2AttributeCertificate.getIssuer()

Deprecated as a consequence of AttributeCertificateIssuer being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V2CRLGenerator

use org.bouncycastle.cert.X509v2CRLBuilder.

org.bouncycastle.x509.X509V2CRLGenerator.addCRLEntry(BigInteger userCertificate, Date revocationDate, X509Extensions extensions)

Deprecated as a consequence of X509Extensions being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V2CRLGenerator.extGenerator

Deprecated as a consequence of X509ExtensionsGenerator being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V2CRLGenerator.setIssuerDN(X509Name issuer)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V3CertificateGenerator

use org.bouncycastle.cert.X509v3CertificateBuilder.

org.bouncycastle.x509.X509V3CertificateGenerator.extGenerator

Deprecated as a consequence of X509ExtensionsGenerator being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V3CertificateGenerator.setIssuerDN(X509Name issuer)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.X509V3CertificateGenerator.setSubjectDN(X509Name subject)

Deprecated as a consequence of X509Name being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.extension.AuthorityKeyIdentifierStructure

use JcaX509ExtensionUtils and AuthorityKeyIdentifier.getInstance()

org.bouncycastle.x509.extension.AuthorityKeyIdentifierStructure.AuthorityKeyIdentifierStructure(X509Extension
a X509Extension object containing an AuthorityKeyIdentifier.
extension
)

use constructor that takes Extension

org.bouncycastle.x509.extension.X509ExtensionUtil

use org.bouncycastle.cert.jcajce.JcaX509ExtensionUtils

org.bouncycastle.x509.extension.X509ExtensionUtil.fromExtensionValue(byte[] encodedValue)

use org.bouncycastle.cert.jcajce.JcaX509ExtensionUtils.parseExtensionValue()

org.bouncycastle.x509.extension.X509ExtensionUtil.getIssuerAlternativeNames(X509Certificate cert)

use org.bouncycastle.cert.jcajce.JcaX509ExtensionUtils.getIssuerAlternativeNames()

org.bouncycastle.x509.extension.X509ExtensionUtil.getSubjectAlternativeNames(X509Certificate cert)

use org.bouncycastle.cert.jcajce.JcaX509ExtensionUtils.getSubjectAlternativeNames()

Returns:

A list of found DER encoded attribute certificates.
org.bouncycastle.x509.util.LDAPStoreHelper.attrCertSubjectSerialSearch
(X509AttributeCertStoreSelector
The selector with the search criteria.
xselector
,
String[]
Attributes which contain the attribute certificates in the LDAP directory.
attrs
,
String[]
Attribute names in the LDAP directory which correspond to the subjectAttributeNames.
attrNames
,
String[]
Subject attribute names (like "CN", "O", "OU") to use to search in the LDAP directory
subjectAttributeNames
)

Deprecated as a consequence of X509AttributeCertStoreSelector being deprecated. See corresponding docs for further information.

Returns:

A list of found DER encoded certificates.
org.bouncycastle.x509.util.LDAPStoreHelper.certSubjectSerialSearch
(X509CertStoreSelector
The selector with the search criteria.
xselector
,
String[]
Attributes which contain the certificates in the LDAP directory.
attrs
,
String[]
Attribute names in teh LDAP directory which correspond to the subjectAttributeNames.
attrNames
,
String[]
Subject attribute names (like "CN", "O", "OU") to use to search in the LDAP directory
subjectAttributeNames
)

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.util.LDAPStoreHelper.createAttributeCertificates(List<E> list, X509AttributeCertStoreSelector xselector)

Deprecated as a consequence of X509AttributeCertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.util.LDAPStoreHelper.createCerts(List<E> list, X509CertStoreSelector xselector)

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

Returns:

A possible empty collection with attribute certificates.
org.bouncycastle.x509.util.LDAPStoreHelper.getAACertificates
(X509AttributeCertStoreSelector
The selector to find the attribute certificates.
selector
)

Deprecated as a consequence of X509AttributeCertStoreSelector being deprecated. See corresponding docs for further information.

Returns:

A possible empty collection with attribute certificates.
org.bouncycastle.x509.util.LDAPStoreHelper.getAttributeCertificateAttributes
(X509AttributeCertStoreSelector
The selector to find the attribute certificates.
selector
)

Deprecated as a consequence of X509AttributeCertStoreSelector being deprecated. See corresponding docs for further information.

Returns:

A possible empty collection with attribute certificates.
org.bouncycastle.x509.util.LDAPStoreHelper.getAttributeDescriptorCertificates
(X509AttributeCertStoreSelector
The selector to find the attribute certificates.
selector
)

Deprecated as a consequence of X509AttributeCertStoreSelector being deprecated. See corresponding docs for further information.

Returns:

A possible empty collection with certificates.
org.bouncycastle.x509.util.LDAPStoreHelper.getCACertificates
(X509CertStoreSelector
The selector to find the certificates.
selector
)

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

org.bouncycastle.x509.util.LDAPStoreHelper.getSubjectAsString(X509CertStoreSelector xselector)

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.

Returns:

A possible empty collection with certificates.
org.bouncycastle.x509.util.LDAPStoreHelper.getUserCertificates
(X509CertStoreSelector
The selector to find the certificates.
selector
)

Deprecated as a consequence of X509CertStoreSelector being deprecated. See corresponding docs for further information.