Tabnine Logo
AuthorityKeyIdentifierStructure.<init>
Code IndexAdd Tabnine 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)

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

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • String (java.lang)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • CodeWhisperer alternatives
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