本文整理了Java中org.bouncycastle.asn1.x509.Time.getInstance()
方法的一些代码示例,展示了Time.getInstance()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Time.getInstance()
方法的具体详情如下:
包路径:org.bouncycastle.asn1.x509.Time
类名称:Time
方法名:getInstance
暂无
代码示例来源:origin: apache/pdfbox
if (signingTime != null)
Time timeInstance = Time.getInstance(signingTime.getAttrValues().getObjectAt(0));
try
代码示例来源:origin: esig/dss
public static Date getDate(ASN1Encodable encodable) {
try {
return Time.getInstance(encodable).getDate();
} catch (Exception e) {
LOG.warn("Unable to retrieve the date : " + encodable, e);
return null;
}
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public static Time getInstance(
ASN1TaggedObject obj,
boolean explicit)
{
return getInstance(obj.getObject()); // must be explicitly tagged
}
代码示例来源:origin: redfish64/TinyTravelTracker
public static Time getInstance(
ASN1TaggedObject obj,
boolean explicit)
{
return getInstance(obj.getObject()); // must be explicitly tagged
}
代码示例来源:origin: esig/dss
private Time rebuildASN1Time(int tagNo, byte[] array) throws IOException {
// Tag UTC or GeneralizedTime
return Time.getInstance(rebuildASN1Primitive(tagNo, array));
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public Time getRevocationDate()
{
return Time.getInstance(seq.getObjectAt(1));
}
代码示例来源:origin: redfish64/TinyTravelTracker
public Time getRevocationDate()
{
return Time.getInstance(seq.getObjectAt(1));
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
private OptionalValidity(ASN1Sequence seq)
{
Enumeration en = seq.getObjects();
while (en.hasMoreElements())
{
ASN1TaggedObject tObj = (ASN1TaggedObject)en.nextElement();
if (tObj.getTagNo() == 0)
{
notBefore = Time.getInstance(tObj, true);
}
else
{
notAfter = Time.getInstance(tObj, true);
}
}
}
代码示例来源:origin: redfish64/TinyTravelTracker
private OptionalValidity(ASN1Sequence seq)
{
Enumeration en = seq.getObjects();
while (en.hasMoreElements())
{
ASN1TaggedObject tObj = (ASN1TaggedObject)en.nextElement();
if (tObj.getTagNo() == 0)
{
notBefore = Time.getInstance(tObj, true);
}
else
{
notAfter = Time.getInstance(tObj, true);
}
}
}
代码示例来源:origin: esig/dss
protected void extractExpiredCertsOnCRL(CRLValidity validity, byte[] expiredCertsOnCRLBinaries) {
if (expiredCertsOnCRLBinaries != null) {
try {
ASN1OctetString octetString = (ASN1OctetString) ASN1Primitive.fromByteArray(expiredCertsOnCRLBinaries);
Time time = Time.getInstance(ASN1Primitive.fromByteArray(octetString.getOctets()));
if (time != null && time.toASN1Primitive() instanceof ASN1GeneralizedTime) {
validity.setExpiredCertsOnCRL(time.getDate());
} else {
LOG.warn("Attribute 'expiredCertsOnCRL' found but ignored (should be encoded as ASN.1 GeneralizedTime)");
}
} catch (Exception e) {
LOG.error("Unable to parse expiredCertsOnCRL on CRL : " + e.getMessage(), e);
}
}
}
代码示例来源:origin: org.apache.pdfbox/pdfbox-examples
if (signingTime != null)
Time timeInstance = Time.getInstance(signingTime.getAttrValues().getObjectAt(0));
try
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
startDate = Time.getInstance(dates.getObjectAt(0));
endDate = Time.getInstance(dates.getObjectAt(1));
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
thisUpdate = Time.getInstance(seq.getObjectAt(seqPos++));
|| seq.getObjectAt(seqPos) instanceof Time))
nextUpdate = Time.getInstance(seq.getObjectAt(seqPos++));
代码示例来源:origin: redfish64/TinyTravelTracker
thisUpdate = Time.getInstance(seq.getObjectAt(seqPos++));
|| seq.getObjectAt(seqPos) instanceof Time))
nextUpdate = Time.getInstance(seq.getObjectAt(seqPos++));
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
startDate = Time.getInstance(dates.getObjectAt(0));
endDate = Time.getInstance(dates.getObjectAt(1));
代码示例来源:origin: redfish64/TinyTravelTracker
startDate = Time.getInstance(dates.getObjectAt(0));
endDate = Time.getInstance(dates.getObjectAt(1));
代码示例来源:origin: redfish64/TinyTravelTracker
startDate = Time.getInstance(dates.getObjectAt(0));
endDate = Time.getInstance(dates.getObjectAt(1));
内容来源于网络,如有侵权,请联系作者删除!