本文整理了Java中org.bouncycastle.asn1.x509.X509CertificateStructure.<init>()
方法的一些代码示例,展示了X509CertificateStructure.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509CertificateStructure.<init>()
方法的具体详情如下:
包路径:org.bouncycastle.asn1.x509.X509CertificateStructure
类名称:X509CertificateStructure
方法名:<init>
暂无
代码示例来源:origin: com.google.code.jscep/jscep-api
private X509CertificateStructure getCertificate() {
try {
ASN1Sequence seq = (ASN1Sequence) ASN1Object.fromByteArray(identity.getEncoded());
X509CertificateStructure x509 = new X509CertificateStructure(seq);
return x509;
} catch (CertificateEncodingException e) {
throw new RuntimeException(e);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public static X509CertificateStructure getInstance(
Object obj)
{
if (obj instanceof X509CertificateStructure)
{
return (X509CertificateStructure)obj;
}
else if (obj != null)
{
return new X509CertificateStructure(ASN1Sequence.getInstance(obj));
}
return null;
}
代码示例来源:origin: redfish64/TinyTravelTracker
public static X509CertificateStructure getInstance(
Object obj)
{
if (obj instanceof X509CertificateStructure)
{
return (X509CertificateStructure)obj;
}
else if (obj != null)
{
return new X509CertificateStructure(ASN1Sequence.getInstance(obj));
}
return null;
}
代码示例来源:origin: open-eid/digidoc4j
ASN1InputStream aIn = new ASN1InputStream(bIn);
ASN1Sequence seq = (ASN1Sequence)aIn.readObject();
X509CertificateStructure obj = new X509CertificateStructure(seq);
TBSCertificateStructure tbsCert = obj.getTBSCertificate();
if (tbsCert.getVersion() == 3) {
内容来源于网络,如有侵权,请联系作者删除!