Java 类org.bouncycastle.asn1.cms.TimeStampAndCRL 实例源码

项目:ipack    文件:TimeStampDataUtil.java   
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);
    }
}
项目:gwt-crypto    文件:TimeStampDataUtil.java   
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);
    }
}
项目:Aki-SSL    文件:TimeStampDataUtil.java   
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);
    }
}
项目:irma_future_id    文件:TimeStampDataUtil.java   
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);
    }
}
项目:bc-java    文件:TimeStampDataUtil.java   
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);
    }
}
项目:ipack    文件:CMSTimeStampedData.java   
/**
 * 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)))));
}
项目:gwt-crypto    文件:CMSTimeStampedData.java   
/**
 * 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)))));
}
项目:Aki-SSL    文件:CMSTimeStampedData.java   
/**
 * 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)))));
}
项目:irma_future_id    文件:CMSTimeStampedData.java   
/**
 * 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)))));
}
项目:irma_future_id    文件:CMSTimeStampedData.java   
/**
 * 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)))));
}
项目:irma_future_id    文件:CMSTimeStampedData.java   
/**
 * 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)))));
}
项目:bc-java    文件:CMSTimeStampedData.java   
/**
 * 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)))));
}
项目:bc-java    文件:CMSTimeStampedData.java   
/**
 * 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)))));
}
项目:bc-java    文件:CMSTimeStampedData.java   
/**
 * 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)))));
}
项目:ipack    文件:TimeStampDataUtil.java   
TimeStampAndCRL[] getTimeStamps()
{
    return timeStamps;
}
项目:gwt-crypto    文件:TimeStampDataUtil.java   
TimeStampAndCRL[] getTimeStamps()
{
    return timeStamps;
}
项目:Aki-SSL    文件:TimeStampDataUtil.java   
TimeStampAndCRL[] getTimeStamps()
{
    return timeStamps;
}
项目:irma_future_id    文件:TimeStampDataUtil.java   
TimeStampAndCRL[] getTimeStamps()
{
    return timeStamps;
}
项目:bc-java    文件:TimeStampDataUtil.java   
TimeStampAndCRL[] getTimeStamps()
{
    return timeStamps;
}