Tabnine Logo
JcaContentSignerBuilder.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.madgag.spongycastle/bcpkix-jdk15on

ContentSigner createContentSigner(String algorithm, PrivateKey privateKey)
  throws OperatorCreationException
{
  return new JcaContentSignerBuilder(algorithm).build(privateKey);
}
origin: com.madgag.spongycastle/pkix

ContentSigner createContentSigner(String algorithm, PrivateKey privateKey)
  throws OperatorCreationException
{
  return new JcaContentSignerBuilder(algorithm).build(privateKey);
}
origin: com.madgag.spongycastle/pkix

ContentSigner createContentSigner(String algorithm, PrivateKey privateKey)
  throws OperatorCreationException
{
  return new JcaContentSignerBuilder(algorithm).setProvider(provider).build(privateKey);
}
origin: com.madgag.spongycastle/pkix

ContentSigner createContentSigner(String algorithm, PrivateKey privateKey)
  throws OperatorCreationException
{
  return new JcaContentSignerBuilder(algorithm).setProvider(providerName).build(privateKey);
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

ContentSigner createContentSigner(String algorithm, PrivateKey privateKey)
  throws OperatorCreationException
{
  return new JcaContentSignerBuilder(algorithm).setProvider(provider).build(privateKey);
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

ContentSigner createContentSigner(String algorithm, PrivateKey privateKey)
  throws OperatorCreationException
{
  return new JcaContentSignerBuilder(algorithm).setProvider(providerName).build(privateKey);
}
origin: MCMrARM/revolution-irc

private void generateCert() throws Exception {
  KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA");
  keyPairGenerator.initialize(2048);
  KeyPair kp = keyPairGenerator.generateKeyPair();
  X500Name name = new X500Name("CN=Revolution IRC Client Certificate");
  BigInteger serial = new BigInteger(64, new SecureRandom());
  Date from = new Date();
  Date to = new Date(from.getTime() + 30L * 365L * 24L * 60L * 60L * 1000L);
  X509v3CertificateBuilder builder = new X509v3CertificateBuilder(name, serial, from, to, name, SubjectPublicKeyInfo.getInstance(kp.getPublic().getEncoded()));
  ContentSigner signer = new JcaContentSignerBuilder("SHA256WithRSA").build(kp.getPrivate());
  X509CertificateHolder holder = builder.build(signer);
  CertificateFactory factory = CertificateFactory.getInstance("X.509");
  mServerCert = (X509Certificate) factory.generateCertificate(
      new ByteArrayInputStream(holder.getEncoded()));
  mServerPrivKey = kp.getPrivate().getEncoded();
  mServerPrivKeyType = kp.getPrivate().getAlgorithm();
  mServerAuthSASLExtFP.setText(getString(R.string.server_sasl_ext_fp,
      getCertificateFingerprint(mServerCert)));
}
origin: RomascuAndrei/BTNotifierAndroid

    keyPair.getPublic());
ContentSigner signer = new JcaContentSignerBuilder("SHA256WithRSAEncryption").build(keyPair.getPrivate());
X509CertificateHolder certHolder = builder.build(signer);
X509Certificate cert = new JcaX509CertificateConverter().setProvider(PROVIDER).getCertificate(certHolder);
origin: KDE/kdeconnect-android

    publicKey
);
ContentSigner contentSigner = new JcaContentSignerBuilder("SHA256WithRSAEncryption").setProvider(BC).build(privateKey);
certificate = new JcaX509CertificateConverter().setProvider(BC).getCertificate(certificateBuilder.build(contentSigner));
origin: OPCFoundation/UA-Java-Legacy

ContentSigner signer = new JcaContentSignerBuilder(
    CertificateUtils.getCertificateSignatureAlgorithm())
.setProvider("SC").build(signerKey);
origin: OPCFoundation/UA-Java-Legacy

ContentSigner signer = new JcaContentSignerBuilder(
    CertificateUtils.getCertificateSignatureAlgorithm()).setProvider("SC")
    .build(signerKey);
origin: OPCFoundation/UA-Java-Legacy

ContentSigner signer;
try {
  signer = new JcaContentSignerBuilder(
      CertificateUtils.getCertificateSignatureAlgorithm())
  .setProvider("SC").build(privateKey);
origin: OPCFoundation/UA-Java-Legacy

ContentSigner signer;
try {
  signer = new JcaContentSignerBuilder(CertificateUtils.getCertificateSignatureAlgorithm())
      .setProvider("SC").build(privateKey);
} catch (OperatorCreationException e) {
org.spongycastle.operator.jcajceJcaContentSignerBuilder<init>

Popular methods of JcaContentSignerBuilder

  • build
  • setProvider

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text 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