Tabnine Logo
AuthorityKeyIdentifierStructure
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.bouncycastle.x509.extension.AuthorityKeyIdentifierStructure (Showing top 16 results out of 315)

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.bouncycastle/bcprov-debug-jdk15on

/**
 * Create an AuthorityKeyIdentifier using the passed in certificate's public
 * key, issuer and serial number.
 * 
 * @param certificate the certificate providing the information.
 * @throws CertificateParsingException if there is a problem processing the certificate
 */
public AuthorityKeyIdentifierStructure(
  X509Certificate certificate)
  throws CertificateParsingException
{
  super(fromCertificate(certificate));
}

origin: org.bouncycastle/bcprov-debug-jdk15on

  /**
   * Create an AuthorityKeyIdentifier using just the hash of the 
   * public key.
   * 
   * @param pubKey the key to generate the hash from.
   * @throws InvalidKeyException if there is a problem using the key.
   */
  public AuthorityKeyIdentifierStructure(
    PublicKey pubKey) 
    throws InvalidKeyException
  {
    super(fromKey(pubKey));
  }
}
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.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: 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: puppetlabs/certificate-authority

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

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

Javadoc

A high level authority key identifier.

Most used methods

  • <init>
    Constructor which will take the byte[] returned from getExtensionValue()
  • fromCertificate
  • fromKey

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • Menu (java.awt)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Join (org.hibernate.mapping)
  • Option (scala)
  • Best IntelliJ 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