congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JcaDigestCalculatorProviderBuilder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.spongycastle.operator.jcajce.JcaDigestCalculatorProviderBuilder
constructor

Best Java code snippets using org.spongycastle.operator.jcajce.JcaDigestCalculatorProviderBuilder.<init> (Showing top 20 results out of 315)

origin: com.madgag.spongycastle/pkix

  DigestCalculatorProvider createDigestCalculatorProvider()
    throws OperatorCreationException
  {
    return new JcaDigestCalculatorProviderBuilder().build();
  }
}
origin: com.madgag.spongycastle/pkix

  DigestCalculatorProvider createDigestCalculatorProvider()
    throws OperatorCreationException
  {
    return new JcaDigestCalculatorProviderBuilder().build();
  }
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

  DigestCalculatorProvider createDigestCalculatorProvider()
    throws OperatorCreationException
  {
    return new JcaDigestCalculatorProviderBuilder().build();
  }
}
origin: com.madgag.spongycastle/pkix

  DigestCalculatorProvider createDigestCalculatorProvider()
    throws OperatorCreationException
  {
    return new JcaDigestCalculatorProviderBuilder().build();
  }
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

  DigestCalculatorProvider createDigestCalculatorProvider()
    throws OperatorCreationException
  {
    return new JcaDigestCalculatorProviderBuilder().build();
  }
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

  DigestCalculatorProvider createDigestCalculatorProvider()
    throws OperatorCreationException
  {
    return new JcaDigestCalculatorProviderBuilder().build();
  }
}
origin: com.madgag.spongycastle/pkix

  DigestCalculatorProvider createDigestCalculatorProvider()
    throws OperatorCreationException
  {
    return new JcaDigestCalculatorProviderBuilder().setProvider(providerName).build();
  }
}
origin: com.madgag.spongycastle/pkix

  DigestCalculatorProvider createDigestCalculatorProvider()
    throws OperatorCreationException
  {
    return new JcaDigestCalculatorProviderBuilder().setProvider(provider).build();
  }
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

  DigestCalculatorProvider createDigestCalculatorProvider()
    throws OperatorCreationException
  {
    return new JcaDigestCalculatorProviderBuilder().setProvider(provider).build();
  }
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

  DigestCalculatorProvider createDigestCalculatorProvider()
    throws OperatorCreationException
  {
    return new JcaDigestCalculatorProviderBuilder().setProvider(providerName).build();
  }
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

DigestCalculatorProvider createDigestCalculatorProvider()
  throws OperatorCreationException
{
  return new JcaDigestCalculatorProviderBuilder().setProvider(providerName).build();
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

DigestCalculatorProvider createDigestCalculatorProvider()
  throws OperatorCreationException
{
  return new JcaDigestCalculatorProviderBuilder().setProvider(provider).build();
}
origin: com.madgag.spongycastle/pkix

DigestCalculatorProvider createDigestCalculatorProvider()
  throws OperatorCreationException
{
  return new JcaDigestCalculatorProviderBuilder().setProvider(provider).build();
}
origin: com.madgag.spongycastle/pkix

DigestCalculatorProvider createDigestCalculatorProvider()
  throws OperatorCreationException
{
  return new JcaDigestCalculatorProviderBuilder().setProvider(providerName).build();
}
origin: com.madgag.spongycastle/pkix

DigestCalculatorProvider createDigestCalculatorProvider()
  throws OperatorCreationException
{
  return new JcaDigestCalculatorProviderBuilder().setProvider(provider).build();
}
origin: com.madgag.spongycastle/pkix

DigestCalculatorProvider createDigestCalculatorProvider()
  throws OperatorCreationException
{
  return new JcaDigestCalculatorProviderBuilder().setProvider(providerName).build();
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

DigestCalculatorProvider createDigestCalculatorProvider()
  throws OperatorCreationException
{
  return new JcaDigestCalculatorProviderBuilder().setProvider(providerName).build();
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

DigestCalculatorProvider createDigestCalculatorProvider()
  throws OperatorCreationException
{
  return new JcaDigestCalculatorProviderBuilder().setProvider(provider).build();
}
origin: com.itextpdf/itextg

/**
 * Checks if OCSP revocation refers to the document signing certificate.
 * @return true if it checks, false otherwise
 * @since    2.1.6
 */
public boolean isRevocationValid() {
  if (basicResp == null)
    return false;
  if (signCerts.size() < 2)
    return false;
  try {
    X509Certificate[] cs = (X509Certificate[])getSignCertificateChain();
    SingleResp sr = basicResp.getResponses()[0];
    CertificateID cid = sr.getCertID();
    DigestCalculator digestalg = new JcaDigestCalculatorProviderBuilder().build().get(new AlgorithmIdentifier(cid.getHashAlgOID(), DERNull.INSTANCE));
    X509Certificate sigcer = getSigningCertificate();
    X509Certificate isscer = cs[1];
    CertificateID tis = new CertificateID(
      digestalg, new JcaX509CertificateHolder(isscer), sigcer.getSerialNumber());
    return tis.equals(cid);
  }
  catch (Exception ex) {
  }
  return false;
}
origin: com.itextpdf/itextg

/**
 * Generates an OCSP request using BouncyCastle.
 *
 * @param issuerCert   certificate of the issues
 * @param serialNumber serial number
 * @return an OCSP request
 * @throws OCSPException
 * @throws IOException
 */
private static OCSPReq generateOCSPRequest(X509Certificate issuerCert, BigInteger serialNumber) throws OCSPException, IOException,
    OperatorException, CertificateEncodingException {
  //Add provider BC
  Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
  // Generate the id for the certificate we are looking for
  CertificateID id = new CertificateID(
      new JcaDigestCalculatorProviderBuilder().build().get(CertificateID.HASH_SHA1),
      new JcaX509CertificateHolder(issuerCert), serialNumber);
  // basic request generation with nonce
  OCSPReqBuilder gen = new OCSPReqBuilder();
  gen.addRequest(id);
  Extension ext = new Extension(OCSPObjectIdentifiers.id_pkix_ocsp_nonce, false, new DEROctetString(new DEROctetString(PdfEncryption.createDocumentId()).getEncoded()));
  gen.setRequestExtensions(new Extensions(new Extension[]{ext}));
  return gen.build();
}
org.spongycastle.operator.jcajceJcaDigestCalculatorProviderBuilder<init>

Popular methods of JcaDigestCalculatorProviderBuilder

  • build
  • setProvider

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now