• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java TimeStampAndCRL类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.bouncycastle.asn1.cms.TimeStampAndCRL的典型用法代码示例。如果您正苦于以下问题:Java TimeStampAndCRL类的具体用法?Java TimeStampAndCRL怎么用?Java TimeStampAndCRL使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

TimeStampAndCRL类属于org.bouncycastle.asn1.cms包,在下文中一共展示了TimeStampAndCRL类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: calculateNextHash

点赞 3

import org.bouncycastle.asn1.cms.TimeStampAndCRL; //导入依赖的package包/类
byte[] calculateNextHash(DigestCalculator calculator)
    throws CMSException
{
    TimeStampAndCRL tspToken = timeStamps[timeStamps.length - 1];

    OutputStream out = calculator.getOutputStream();

    try
    {
        out.write(tspToken.getEncoded(ASN1Encoding.DER));

        out.close();

        return calculator.getDigest();
    }
    catch (IOException e)
    {
        throw new CMSException("exception calculating hash: " + e.getMessage(), e);
    }
}
 

开发者ID:Appdome,
项目名称:ipack,
代码行数:21,
代码来源:TimeStampDataUtil.java

示例2: addTimeStamp

点赞 2

import org.bouncycastle.asn1.cms.TimeStampAndCRL; //导入依赖的package包/类
/**
 * Return a new timeStampedData object with the additional token attached.
 *
 * @throws CMSException
 */
public CMSTimeStampedData addTimeStamp(TimeStampToken token)
    throws CMSException
{
    TimeStampAndCRL[] timeStamps = util.getTimeStamps();
    TimeStampAndCRL[] newTimeStamps = new TimeStampAndCRL[timeStamps.length + 1];

    System.arraycopy(timeStamps, 0, newTimeStamps, 0, timeStamps.length);

    newTimeStamps[timeStamps.length] = new TimeStampAndCRL(token.toCMSSignedData().toASN1Structure());

    return new CMSTimeStampedData(new ContentInfo(CMSObjectIdentifiers.timestampedData, new TimeStampedData(timeStampedData.getDataUri(), timeStampedData.getMetaData(), timeStampedData.getContent(), new Evidence(new TimeStampTokenEvidence(newTimeStamps)))));
}
 

开发者ID:Appdome,
项目名称:ipack,
代码行数:18,
代码来源:CMSTimeStampedData.java

示例3: addTimeStamp

点赞 2

import org.bouncycastle.asn1.cms.TimeStampAndCRL; //导入依赖的package包/类
/**
 * Return a new timeStampedData object with the additional token attached.
 *
 * @throws CMSException
 */
public CMSTimeStampedData addTimeStamp(TimeStampToken token)
    throws CMSException
{
    TimeStampAndCRL[] timeStamps = util.getTimeStamps();
    TimeStampAndCRL[] newTimeStamps = new TimeStampAndCRL[timeStamps.length + 1];

    System.arraycopy(timeStamps, 0, newTimeStamps, 0, timeStamps.length);

    newTimeStamps[timeStamps.length] = new TimeStampAndCRL(token.toCMSSignedData().getContentInfo());

    return new CMSTimeStampedData(new ContentInfo(CMSObjectIdentifiers.timestampedData, new TimeStampedData(timeStampedData.getDataUri(), timeStampedData.getMetaData(), timeStampedData.getContent(), new Evidence(new TimeStampTokenEvidence(newTimeStamps)))));
}
 

开发者ID:credentials,
项目名称:irma_future_id,
代码行数:18,
代码来源:CMSTimeStampedData.java

示例4: getTimeStamps

点赞 2

import org.bouncycastle.asn1.cms.TimeStampAndCRL; //导入依赖的package包/类
TimeStampAndCRL[] getTimeStamps()
{
    return timeStamps;
}
 

开发者ID:Appdome,
项目名称:ipack,
代码行数:5,
代码来源:TimeStampDataUtil.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)