本文整理汇总了Java中org.bouncycastle.asn1.x509.Holder类的典型用法代码示例。如果您正苦于以下问题:Java Holder类的具体用法?Java Holder怎么用?Java Holder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Holder类属于org.bouncycastle.asn1.x509包,在下文中一共展示了Holder类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: AttributeCertificateHolder
import org.bouncycastle.asn1.x509.Holder; //导入依赖的package包/类
public AttributeCertificateHolder(X509Certificate cert)
throws CertificateParsingException
{
X509Principal name;
try
{
name = PrincipalUtil.getIssuerX509Principal(cert);
}
catch (Exception e)
{
throw new CertificateParsingException(e.getMessage());
}
holder = new Holder(new IssuerSerial(generateGeneralNames(name),
new ASN1Integer(cert.getSerialNumber())));
}
开发者ID:Appdome,项目名称:ipack,代码行数:18,代码来源:AttributeCertificateHolder.java
示例2: AttributeCertificateHolder
import org.bouncycastle.asn1.x509.Holder; //导入依赖的package包/类
public AttributeCertificateHolder(X509Certificate cert)
throws CertificateParsingException
{
X509Principal name;
try
{
name = PrincipalUtil.getIssuerX509Principal(cert);
}
catch (Exception e)
{
throw new CertificateParsingException(e.getMessage());
}
holder = new Holder(new IssuerSerial(generateGeneralNames(name),
new DERInteger(cert.getSerialNumber())));
}
开发者ID:AcademicTorrents,项目名称:AcademicTorrents-Downloader,代码行数:18,代码来源:AttributeCertificateHolder.java
示例3: setHolder
import org.bouncycastle.asn1.x509.Holder; //导入依赖的package包/类
public void setHolder( String holderDN , int holderSerialNumber ) throws Exception
{
try
{
DERSequence holder_name_sequence = DNtoDERSequence( holderDN ) ;
IssuerSerial baseCertificateID = new IssuerSerial( new GeneralNames( new GeneralName( 4 , holder_name_sequence ) ) , new DERInteger( holderSerialNumber ) ) ;
this.holder = new Holder( baseCertificateID ) ;
}
catch(Exception e)
{
throw e ;
}
}
开发者ID:NLeSC,项目名称:vbrowser,代码行数:18,代码来源:VOMSAttributeCertificate.java
示例4: AttributeCertificateHolder
import org.bouncycastle.asn1.x509.Holder; //导入依赖的package包/类
public AttributeCertificateHolder(X500Name issuerName,
BigInteger serialNumber)
{
holder = new Holder(new IssuerSerial(
new GeneralNames(new GeneralName(issuerName)),
new ASN1Integer(serialNumber)));
}
开发者ID:Appdome,项目名称:ipack,代码行数:8,代码来源:AttributeCertificateHolder.java
示例5: AttributeCertificateHolder
import org.bouncycastle.asn1.x509.Holder; //导入依赖的package包/类
/**
* Create a holder using the baseCertificateID element.
*
* @param issuerName name of associated certificate's issuer.
* @param serialNumber serial number of associated certificate.
*/
public AttributeCertificateHolder(X500Name issuerName,
BigInteger serialNumber)
{
holder = new Holder(new IssuerSerial(
generateGeneralNames(issuerName),
new ASN1Integer(serialNumber)));
}
开发者ID:ttt43ttt,项目名称:gwt-crypto,代码行数:14,代码来源:AttributeCertificateHolder.java
注:本文中的org.bouncycastle.asn1.x509.Holder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论