本文整理了Java中org.bouncycastle.asn1.x509.Time.getTime()
方法的一些代码示例,展示了Time.getTime()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Time.getTime()
方法的具体详情如下:
包路径:org.bouncycastle.asn1.x509.Time
类名称:Time
方法名:getTime
暂无
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public String toString()
{
return getTime();
}
}
代码示例来源:origin: redfish64/TinyTravelTracker
public String toString()
{
return getTime();
}
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public void checkValidity(
Date date)
throws CertificateExpiredException, CertificateNotYetValidException
{
if (date.getTime() > this.getNotAfter().getTime()) // for other VM compatibility
{
throw new CertificateExpiredException("certificate expired on " + c.getEndDate().getTime());
}
if (date.getTime() < this.getNotBefore().getTime())
{
throw new CertificateNotYetValidException("certificate not valid till " + c.getStartDate().getTime());
}
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public void checkValidity(
Date date)
throws CertificateExpiredException, CertificateNotYetValidException
{
if (date.getTime() > this.getNotAfter().getTime()) // for other VM compatibility
{
throw new CertificateExpiredException("certificate expired on " + c.getEndDate().getTime());
}
if (date.getTime() < this.getNotBefore().getTime())
{
throw new CertificateNotYetValidException("certificate not valid till " + c.getStartDate().getTime());
}
}
代码示例来源:origin: org.xipki/ca-server
public CertificateList getBcCrl(BigInteger crlNumber) throws OperationException {
LOG.info(" START getCrl: ca={}, crlNumber={}", caIdent.getName(), crlNumber);
boolean successful = false;
try {
byte[] encodedCrl = certstore.getEncodedCrl(caIdent, crlNumber);
if (encodedCrl == null) {
return null;
}
try {
CertificateList crl = CertificateList.getInstance(encodedCrl);
successful = true;
if (LOG.isInfoEnabled()) {
LOG.info("SUCCESSFUL getCrl: ca={}, thisUpdate={}", caIdent.getName(),
crl.getThisUpdate().getTime());
}
return crl;
} catch (RuntimeException ex) {
throw new OperationException(SYSTEM_FAILURE, ex);
}
} finally {
if (!successful) {
LOG.info(" FAILED getCrl: ca={}", caIdent.getName());
}
}
} // method getCrl
代码示例来源:origin: org.xipki/ca-server
public X509CRL getCrl(BigInteger crlNumber) throws OperationException {
LOG.info(" START getCrl: ca={}, crlNumber={}", caIdent.getName(), crlNumber);
boolean successful = false;
try {
byte[] encodedCrl = certstore.getEncodedCrl(caIdent, crlNumber);
if (encodedCrl == null) {
return null;
}
try {
X509CRL crl = X509Util.parseCrl(encodedCrl);
successful = true;
if (LOG.isInfoEnabled()) {
String timeStr = new Time(crl.getThisUpdate()).getTime();
LOG.info("SUCCESSFUL getCrl: ca={}, thisUpdate={}", caIdent.getName(), timeStr);
}
return crl;
} catch (CRLException | CertificateException ex) {
throw new OperationException(SYSTEM_FAILURE, ex);
} catch (RuntimeException ex) {
throw new OperationException(SYSTEM_FAILURE, ex);
}
} finally {
if (!successful) {
LOG.info(" FAILED getCrl: ca={}", caIdent.getName());
}
}
} // method getCrl
内容来源于网络,如有侵权,请联系作者删除!