Java 类org.bouncycastle.asn1.tsp.TimeStampReq 实例源码

项目:ipack    文件:TimeStampRequestGenerator.java   
/**
 * @deprecated use method taking ANS1ObjectIdentifier
 */
public TimeStampRequest generate(
    String      digestAlgorithmOID,
    byte[]      digest,
    BigInteger  nonce)
{
    if (digestAlgorithmOID == null)
    {
        throw new IllegalArgumentException("No digest algorithm specified");
    }

    ASN1ObjectIdentifier digestAlgOID = new ASN1ObjectIdentifier(digestAlgorithmOID);

    AlgorithmIdentifier algID = new AlgorithmIdentifier(digestAlgOID, DERNull.INSTANCE);
    MessageImprint messageImprint = new MessageImprint(algID, digest);

    Extensions  ext = null;

    if (!extGenerator.isEmpty())
    {
        ext = extGenerator.generate();
    }

    if (nonce != null)
    {
        return new TimeStampRequest(new TimeStampReq(messageImprint,
                reqPolicy, new ASN1Integer(nonce), certReq, ext));
    }
    else
    {
        return new TimeStampRequest(new TimeStampReq(messageImprint,
                reqPolicy, null, certReq, ext));
    }
}
项目:gwt-crypto    文件:TimeStampRequestGenerator.java   
/**
 * @deprecated use method taking ANS1ObjectIdentifier
 */
public TimeStampRequest generate(
    String      digestAlgorithmOID,
    byte[]      digest,
    BigInteger  nonce)
{
    if (digestAlgorithmOID == null)
    {
        throw new IllegalArgumentException("No digest algorithm specified");
    }

    ASN1ObjectIdentifier digestAlgOID = new ASN1ObjectIdentifier(digestAlgorithmOID);

    AlgorithmIdentifier algID = new AlgorithmIdentifier(digestAlgOID, DERNull.INSTANCE);
    MessageImprint messageImprint = new MessageImprint(algID, digest);

    Extensions  ext = null;

    if (!extGenerator.isEmpty())
    {
        ext = extGenerator.generate();
    }

    if (nonce != null)
    {
        return new TimeStampRequest(new TimeStampReq(messageImprint,
                reqPolicy, new ASN1Integer(nonce), certReq, ext));
    }
    else
    {
        return new TimeStampRequest(new TimeStampReq(messageImprint,
                reqPolicy, null, certReq, ext));
    }
}
项目:Aki-SSL    文件:TimeStampRequestGenerator.java   
/**
 * @deprecated use method taking ANS1ObjectIdentifier
 */
public TimeStampRequest generate(
    String      digestAlgorithmOID,
    byte[]      digest,
    BigInteger  nonce)
{
    if (digestAlgorithmOID == null)
    {
        throw new IllegalArgumentException("No digest algorithm specified");
    }

    ASN1ObjectIdentifier digestAlgOID = new ASN1ObjectIdentifier(digestAlgorithmOID);

    AlgorithmIdentifier algID = new AlgorithmIdentifier(digestAlgOID, DERNull.INSTANCE);
    MessageImprint messageImprint = new MessageImprint(algID, digest);

    Extensions  ext = null;

    if (!extGenerator.isEmpty())
    {
        ext = extGenerator.generate();
    }

    if (nonce != null)
    {
        return new TimeStampRequest(new TimeStampReq(messageImprint,
                reqPolicy, new ASN1Integer(nonce), certReq, ext));
    }
    else
    {
        return new TimeStampRequest(new TimeStampReq(messageImprint,
                reqPolicy, null, certReq, ext));
    }
}
项目:irma_future_id    文件:TimeStampRequestGenerator.java   
/**
 * @deprecated use method taking ANS1ObjectIdentifier
 */
public TimeStampRequest generate(
    String      digestAlgorithmOID,
    byte[]      digest,
    BigInteger  nonce)
{
    if (digestAlgorithmOID == null)
    {
        throw new IllegalArgumentException("No digest algorithm specified");
    }

    ASN1ObjectIdentifier digestAlgOID = new ASN1ObjectIdentifier(digestAlgorithmOID);

    AlgorithmIdentifier algID = new AlgorithmIdentifier(digestAlgOID, DERNull.INSTANCE);
    MessageImprint messageImprint = new MessageImprint(algID, digest);

    Extensions  ext = null;

    if (!extGenerator.isEmpty())
    {
        ext = extGenerator.generate();
    }

    if (nonce != null)
    {
        return new TimeStampRequest(new TimeStampReq(messageImprint,
                reqPolicy, new ASN1Integer(nonce), certReq, ext));
    }
    else
    {
        return new TimeStampRequest(new TimeStampReq(messageImprint,
                reqPolicy, null, certReq, ext));
    }
}
项目:bc-java    文件:TimeStampRequestGenerator.java   
/**
 * @deprecated use method taking ANS1ObjectIdentifier
 */
public TimeStampRequest generate(
    String      digestAlgorithmOID,
    byte[]      digest,
    BigInteger  nonce)
{
    if (digestAlgorithmOID == null)
    {
        throw new IllegalArgumentException("No digest algorithm specified");
    }

    ASN1ObjectIdentifier digestAlgOID = new ASN1ObjectIdentifier(digestAlgorithmOID);

    AlgorithmIdentifier algID = new AlgorithmIdentifier(digestAlgOID, DERNull.INSTANCE);
    MessageImprint messageImprint = new MessageImprint(algID, digest);

    Extensions  ext = null;

    if (!extGenerator.isEmpty())
    {
        ext = extGenerator.generate();
    }

    if (nonce != null)
    {
        return new TimeStampRequest(new TimeStampReq(messageImprint,
                reqPolicy, new ASN1Integer(nonce), certReq, ext));
    }
    else
    {
        return new TimeStampRequest(new TimeStampReq(messageImprint,
                reqPolicy, null, certReq, ext));
    }
}
项目:ipack    文件:TimeStampRequest.java   
public TimeStampRequest(TimeStampReq req)
{
    this.req = req;
    this.extensions = req.getExtensions();
}
项目:gwt-crypto    文件:TimeStampRequest.java   
public TimeStampRequest(TimeStampReq req)
{
    this.req = req;
    this.extensions = req.getExtensions();
}
项目:Aki-SSL    文件:TimeStampRequest.java   
public TimeStampRequest(TimeStampReq req)
{
    this.req = req;
    this.extensions = req.getExtensions();
}
项目:irma_future_id    文件:TimeStampRequest.java   
public TimeStampRequest(TimeStampReq req)
{
    this.req = req;
    this.extensions = req.getExtensions();
}
项目:irma_future_id    文件:TimeStampRequest.java   
public TimeStampRequest(TimeStampReq req)
{
    this.req = req;
    this.extensions = req.getExtensions();
}
项目:bc-java    文件:TimeStampRequest.java   
public TimeStampRequest(TimeStampReq req)
{
    this.req = req;
    this.extensions = req.getExtensions();
}
项目:bc-java    文件:TimeStampRequest.java   
public TimeStampRequest(TimeStampReq req)
{
    this.req = req;
    this.extensions = req.getExtensions();
}