Codota Logo
AuthorityKeyIdentifierStructure.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.bouncycastle.x509.extension.AuthorityKeyIdentifierStructure
constructor

Best Java code snippets using org.bouncycastle.x509.extension.AuthorityKeyIdentifierStructure.<init> (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: io.brooklyn/brooklyn-core

public FluentKeySigner authorityCertificate(X509Certificate certificate) {
  try {
    authorityKeyIdentifier(new AuthorityKeyIdentifierStructure(certificate));
    this.authorityCertificate = certificate;
    return this;
  } catch (CertificateParsingException e) {
    throw Exceptions.propagate(e);
  }
}
origin: org.apache.brooklyn/brooklyn-core

@SuppressWarnings("deprecation")
public FluentKeySigner authorityCertificate(X509Certificate certificate) {
  try {
    authorityKeyIdentifier(new org.bouncycastle.x509.extension.AuthorityKeyIdentifierStructure(certificate));
    this.authorityCertificate = certificate;
    return this;
  } catch (CertificateParsingException e) {
    throw Exceptions.propagate(e);
  }
}
origin: org.codeartisans.qipki/qipki-crypto

@Override
public X509CRL generateX509CRL( X509Certificate caCertificate, PrivateKey caPrivateKey )
{
  try {
    X509V2CRLGenerator crlGen = new X509V2CRLGenerator();
    crlGen.setIssuerDN( caCertificate.getSubjectX500Principal() );
    crlGen.setThisUpdate( new DateTime().minus( Time.CLOCK_SKEW ).toDate() );
    crlGen.setNextUpdate( new DateTime().minus( Time.CLOCK_SKEW ).plusHours( 12 ).toDate() );
    crlGen.setSignatureAlgorithm( SignatureAlgorithm.SHA256withRSA.jcaString() );
    crlGen.addExtension( X509Extensions.AuthorityKeyIdentifier, false, new AuthorityKeyIdentifierStructure( caCertificate ) );
    crlGen.addExtension( X509Extensions.CRLNumber, false, new CRLNumber( BigInteger.ONE ) );
    return crlGen.generate( caPrivateKey, BouncyCastleProvider.PROVIDER_NAME );
  } catch ( GeneralSecurityException ex ) {
    throw new CryptoFailure( "Unable to generate CRL", ex );
  }
}
origin: org.nhind/agent

new AuthorityKeyIdentifierStructure(fields.getSignerCert()));
origin: org.codeartisans.qipki/qipki-crypto

@Override
public X509CRL updateX509CRL( X509Certificate caCertificate, PrivateKey caPrivateKey, X509Certificate revokedCertificate, RevocationReason reason, X509CRL previousCRL, BigInteger lastCRLNumber )
{
  try {
    X509V2CRLGenerator crlGen = new X509V2CRLGenerator();
    crlGen.setIssuerDN( caCertificate.getSubjectX500Principal() );
    DateTime skewedNow = new DateTime().minus( Time.CLOCK_SKEW );
    crlGen.setThisUpdate( skewedNow.toDate() );
    crlGen.setNextUpdate( skewedNow.plusHours( 12 ).toDate() );
    crlGen.setSignatureAlgorithm( SignatureAlgorithm.SHA256withRSA.jcaString() );
    crlGen.addExtension( X509Extensions.AuthorityKeyIdentifier, false, new AuthorityKeyIdentifierStructure( caCertificate ) );
    crlGen.addExtension( X509Extensions.CRLNumber, false, new CRLNumber( lastCRLNumber ) );
    crlGen.addCRL( previousCRL );
    crlGen.addCRLEntry( revokedCertificate.getSerialNumber(), skewedNow.toDate(), reason.reason() );
    return crlGen.generate( caPrivateKey, BouncyCastleProvider.PROVIDER_NAME );
  } catch ( GeneralSecurityException ex ) {
    throw new CryptoFailure( "Unable to update CRL", ex );
  }
}
origin: org.opencadc/cadc-cdp

false, new AuthorityKeyIdentifierStructure(issuerCert));
origin: puppetlabs/certificate-authority

builder.setNextUpdate(nextUpdate);
builder.addExtension(Extension.authorityKeyIdentifier, false,
           new AuthorityKeyIdentifierStructure(issuerPublicKey));
builder.addExtension(Extension.cRLNumber, false, new CRLNumber(BigInteger.ZERO));
ContentSigner signer =
origin: groupon/odo

X509Extensions.AuthorityKeyIdentifier,
false,
new AuthorityKeyIdentifierStructure(caCert.getPublicKey()));
origin: intuit/Tank

new AuthorityKeyIdentifierStructure(caPubKey));
origin: com.intrbiz.bergamot/bergamot-crypto-util

if (issuer == null)
  certGen.addExtension(X509Extension.authorityKeyIdentifier, false, new AuthorityKeyIdentifierStructure(key));
  certGen.addExtension(X509Extension.authorityKeyIdentifier, false, new AuthorityKeyIdentifierStructure(issuer.getCertificate()));
origin: puppetlabs/certificate-authority

           new CRLNumber(crlNumber.add(BigInteger.ONE)));
builder.addExtension(Extension.authorityKeyIdentifier, false,
           new AuthorityKeyIdentifierStructure(issuerPublicKey));
origin: groupon/odo

X509Extensions.AuthorityKeyIdentifier,
false,
new AuthorityKeyIdentifierStructure(caCert.getPublicKey()));
origin: org.wso2.xkms/xkms

    new AuthorityKeyIdentifierStructure(caCert));
certGen.addExtension(X509Extensions.SubjectKeyIdentifier, false,
    new SubjectKeyIdentifierStructure(key));
origin: SSilence/scotty

    X509Extensions.SubjectKeyIdentifier, false, subjectKeyIdentifier);
AuthorityKeyIdentifierStructure authorityKeyIdentifier = new AuthorityKeyIdentifierStructure(caPubKey);
certificateGenerator.addExtension(
    X509Extensions.AuthorityKeyIdentifier, false,
org.bouncycastle.x509.extensionAuthorityKeyIdentifierStructure<init>

Javadoc

Create an AuthorityKeyIdentifier using just the hash of the public key.

Popular methods of AuthorityKeyIdentifierStructure

  • fromCertificate
  • fromKey

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ImageIO (javax.imageio)
  • JLabel (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now