org.bouncycastle.asn1.x509.Time.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(160)

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

Time.<init>介绍

[英]Creates a time object from a given date - if the date is between 1950 and 2049 a UTCTime object is generated, otherwise a GeneralizedTime is used.
[中]从给定日期创建时间对象——如果日期在1950到2049之间,则生成UTCTime对象,否则使用GeneratedTime。

代码示例

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setEndDate(
  ASN1UTCTime endDate)
{
  this.endDate = new Time(endDate);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setEndDate(
  ASN1UTCTime endDate)
{
  this.endDate = new Time(endDate);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setThisUpdate(
  ASN1UTCTime thisUpdate)
{
  this.thisUpdate = new Time(thisUpdate);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setStartDate(
  ASN1UTCTime startDate)
{
  this.startDate = new Time(startDate);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setStartDate(
  ASN1UTCTime startDate)
{
  this.startDate = new Time(startDate);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setNextUpdate(
  ASN1UTCTime nextUpdate)
{
  this.nextUpdate = new Time(nextUpdate);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setNotAfter(
  Date    date)
{
  tbsGen.setEndDate(new Time(date));
}

代码示例来源:origin: org.xwiki.commons/xwiki-commons-crypto-pkix

@Override
public BcX509TBSCertificateBuilder setEndDate(Date time)
{
  this.tbsGen.setEndDate(new Time(time));
  return this;
}

代码示例来源:origin: redfish64/TinyTravelTracker

public void addCRLEntry(ASN1Integer userCertificate, ASN1UTCTime revocationDate, int reason)
{
  addCRLEntry(userCertificate, new Time(revocationDate), reason);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setThisUpdate(
  Date    date)
{
  tbsGen.setThisUpdate(new Time(date));
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setNotBefore(
  Date    date)
{
  tbsGen.setStartDate(new Time(date));
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setNotAfter(
  Date    date)
{
  tbsGen.setEndDate(new Time(date));
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setNotBefore(
  Date    date)
{
  tbsGen.setStartDate(new Time(date));
}

代码示例来源:origin: org.xwiki.commons/xwiki-commons-crypto-pkix

@Override
public BcX509TBSCertificateBuilder setStartDate(Date time)
{
  this.tbsGen.setStartDate(new Time(time));
  return this;
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void setNextUpdate(
  Date    date)
{
  tbsGen.setNextUpdate(new Time(date));
}

代码示例来源:origin: org.xwiki.commons/xwiki-commons-crypto-pkix

@Override
public BcX509TBSCertificateBuilder setStartDate(Date time)
{
  this.tbsGen.setStartDate(new Time(time));
  return this;
}

代码示例来源:origin: org.xwiki.commons/xwiki-commons-crypto-pkix

@Override
public BcX509TBSCertificateBuilder setEndDate(Date time)
{
  this.tbsGen.setEndDate(new Time(time));
  return this;
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Reason being as indicated by CRLReason, i.e. CRLReason.keyCompromise
 * or 0 if CRLReason is not to be used
 **/
public void addCRLEntry(BigInteger userCertificate, Date revocationDate, int reason)
{
  tbsGen.addCRLEntry(new ASN1Integer(userCertificate), new Time(revocationDate), reason);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Add a CRL entry with an Invalidity Date extension as well as a CRLReason extension.
 * Reason being as indicated by CRLReason, i.e. CRLReason.keyCompromise
 * or 0 if CRLReason is not to be used
 **/
public void addCRLEntry(BigInteger userCertificate, Date revocationDate, int reason, Date invalidityDate)
{
  tbsGen.addCRLEntry(new ASN1Integer(userCertificate), new Time(revocationDate), reason, new ASN1GeneralizedTime(invalidityDate));
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Add a CRL entry with extensions.
 **/
public void addCRLEntry(BigInteger userCertificate, Date revocationDate, X509Extensions extensions)
{
  tbsGen.addCRLEntry(new ASN1Integer(userCertificate), new Time(revocationDate), Extensions.getInstance(extensions));
}

相关文章