org.spongycastle.asn1.x509.V3TBSCertificateGenerator.setIssuer()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(64)

本文整理了Java中org.spongycastle.asn1.x509.V3TBSCertificateGenerator.setIssuer()方法的一些代码示例,展示了V3TBSCertificateGenerator.setIssuer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。V3TBSCertificateGenerator.setIssuer()方法的具体详情如下:
包路径:org.spongycastle.asn1.x509.V3TBSCertificateGenerator
类名称:V3TBSCertificateGenerator
方法名:setIssuer

V3TBSCertificateGenerator.setIssuer介绍

暂无

代码示例

代码示例来源:origin: com.madgag/scprov-jdk15on

/**
 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
 * certificate.
 */
public void setIssuerDN(
  X509Name   issuer)
{
  tbsGen.setIssuer(issuer);
}

代码示例来源:origin: com.madgag.spongycastle/prov

/**
 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
 * certificate.
 */
public void setIssuerDN(
  X509Name   issuer)
{
  tbsGen.setIssuer(issuer);
}

代码示例来源:origin: com.madgag/scprov-jdk15on

/**
 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
 * certificate.
 */
public void setIssuerDN(
  X500Principal   issuer)
{
  try
  {
    tbsGen.setIssuer(new X509Principal(issuer.getEncoded()));
  }
  catch (IOException e)
  {
    throw new IllegalArgumentException("can't process principal: " + e);
  }
}

代码示例来源:origin: com.madgag.spongycastle/prov

/**
 * Set the issuer distinguished name - the issuer is the entity whose private key is used to sign the
 * certificate.
 */
public void setIssuerDN(
  X500Principal   issuer)
{
  try
  {
    tbsGen.setIssuer(new X509Principal(issuer.getEncoded()));
  }
  catch (IOException e)
  {
    throw new IllegalArgumentException("can't process principal: " + e);
  }
}

代码示例来源:origin: stackoverflow.com

tbsGen.setIssuer(issuer);
tbsGen.setStartDate(new Time(new Date(startDate)));
tbsGen.setEndDate(new Time(new Date(endDate)));

代码示例来源:origin: com.madgag.spongycastle/pkix

/**
 * Create a builder for a version 3 certificate.
 *
 * @param issuer the certificate issuer
 * @param serial the certificate serial number
 * @param notBefore the Time before which the certificate is not valid
 * @param notAfter the Time after which the certificate is not valid
 * @param subject the certificate subject
 * @param publicKeyInfo the info structure for the public key to be associated with this certificate.
 */
public X509v3CertificateBuilder(X500Name issuer, BigInteger serial, Time notBefore, Time notAfter, X500Name subject, SubjectPublicKeyInfo publicKeyInfo)
{
  tbsGen = new V3TBSCertificateGenerator();
  tbsGen.setSerialNumber(new ASN1Integer(serial));
  tbsGen.setIssuer(issuer);
  tbsGen.setStartDate(notBefore);
  tbsGen.setEndDate(notAfter);
  tbsGen.setSubject(subject);
  tbsGen.setSubjectPublicKeyInfo(publicKeyInfo);
  extGenerator = new ExtensionsGenerator();
}

代码示例来源:origin: com.madgag.spongycastle/bcpkix-jdk15on

/**
 * Create a builder for a version 3 certificate.
 *
 * @param issuer the certificate issuer
 * @param serial the certificate serial number
 * @param notBefore the Time before which the certificate is not valid
 * @param notAfter the Time after which the certificate is not valid
 * @param subject the certificate subject
 * @param publicKeyInfo the info structure for the public key to be associated with this certificate.
 */
public X509v3CertificateBuilder(X500Name issuer, BigInteger serial, Time notBefore, Time notAfter, X500Name subject, SubjectPublicKeyInfo publicKeyInfo)
{
  tbsGen = new V3TBSCertificateGenerator();
  tbsGen.setSerialNumber(new ASN1Integer(serial));
  tbsGen.setIssuer(issuer);
  tbsGen.setStartDate(notBefore);
  tbsGen.setEndDate(notAfter);
  tbsGen.setSubject(subject);
  tbsGen.setSubjectPublicKeyInfo(publicKeyInfo);
  extGenerator = new ExtensionsGenerator();
}

相关文章