Class BcPKCS12MacCalculatorBuilder

  • All Implemented Interfaces:
    PKCS12MacCalculatorBuilder

    public class BcPKCS12MacCalculatorBuilder
    extends java.lang.Object
    implements PKCS12MacCalculatorBuilder
    Lightweight builder for the password-based MAC calculator used to protect the integrity of a PKCS#12 PFX (RFC 7292). Defaults to SHA-1 with an iteration count of 1024.
    • Constructor Detail

      • BcPKCS12MacCalculatorBuilder

        public BcPKCS12MacCalculatorBuilder()
        Default constructor — produces a SHA-1 based MAC builder.
      • BcPKCS12MacCalculatorBuilder

        public BcPKCS12MacCalculatorBuilder​(org.bouncycastle.crypto.ExtendedDigest digest,
                                            org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
        Construct a MAC builder backed by a specific digest.
        Parameters:
        digest - the lightweight digest implementation to drive the HMAC.
        algorithmIdentifier - the algorithm identifier describing digest.