本文整理汇总了Java中org.bouncycastle.asn1.crmf.PKIPublicationInfo类的典型用法代码示例。如果您正苦于以下问题:Java PKIPublicationInfo类的具体用法?Java PKIPublicationInfo怎么用?Java PKIPublicationInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PKIPublicationInfo类属于org.bouncycastle.asn1.crmf包,在下文中一共展示了PKIPublicationInfo类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CertifiedKeyPair
import org.bouncycastle.asn1.crmf.PKIPublicationInfo; //导入依赖的package包/类
private CertifiedKeyPair(ASN1Sequence seq)
{
certOrEncCert = CertOrEncCert.getInstance(seq.getObjectAt(0));
if (seq.size() >= 2)
{
if (seq.size() == 2)
{
ASN1TaggedObject tagged = ASN1TaggedObject.getInstance(seq.getObjectAt(1));
if (tagged.getTagNo() == 0)
{
privateKey = EncryptedValue.getInstance(tagged.getObject());
}
else
{
publicationInfo = PKIPublicationInfo.getInstance(tagged.getObject());
}
}
else
{
privateKey = EncryptedValue.getInstance(ASN1TaggedObject.getInstance(seq.getObjectAt(1)));
publicationInfo = PKIPublicationInfo.getInstance(ASN1TaggedObject.getInstance(seq.getObjectAt(2)));
}
}
}
示例2: getPublicationInfo
import org.bouncycastle.asn1.crmf.PKIPublicationInfo; //导入依赖的package包/类
public PKIPublicationInfo getPublicationInfo()
{
return publicationInfo;
}