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

项目:ipack    文件:OriginatorInfoGenerator.java   
public OriginatorInformation generate()
{
    if (origCRLs != null)
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), CMSUtils.createDerSetFromList(origCRLs)));
    }
    else
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), null));
    }
}
项目:ipack    文件:CMSEnvelopedDataParser.java   
public CMSEnvelopedDataParser(
    InputStream    envelopedData) 
    throws CMSException, IOException
{
    super(envelopedData);

    this.attrNotRead = true;
    this.envelopedData = new EnvelopedDataParser((ASN1SequenceParser)_contentInfo.getContent(BERTags.SEQUENCE));

    // TODO Validate version?
    //DERInteger version = this._envelopedData.getVersion();

    OriginatorInfo info = this.envelopedData.getOriginatorInfo();

    if (info != null)
    {
        this.originatorInfo = new OriginatorInformation(info);
    }

    //
    // read the recipients
    //
    ASN1Set recipientInfos = ASN1Set.getInstance(this.envelopedData.getRecipientInfos().toASN1Primitive());

    //
    // read the encrypted content info
    //
    EncryptedContentInfoParser encInfo = this.envelopedData.getEncryptedContentInfo();
    this.encAlg = encInfo.getContentEncryptionAlgorithm();
    CMSReadable readable = new CMSProcessableInputStream(
        ((ASN1OctetStringParser)encInfo.getEncryptedContent(BERTags.OCTET_STRING)).getOctetStream());
    CMSSecureReadable secureReadable = new CMSEnvelopedHelper.CMSEnvelopedSecureReadable(
        this.encAlg, readable);

    //
    // build the RecipientInformationStore
    //
    this.recipientInfoStore = CMSEnvelopedHelper.buildRecipientInformationStore(
        recipientInfos, this.encAlg, secureReadable);
}
项目:gwt-crypto    文件:OriginatorInfoGenerator.java   
public OriginatorInformation generate()
{
    if (origCRLs != null)
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), CMSUtils.createDerSetFromList(origCRLs)));
    }
    else
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), null));
    }
}
项目:gwt-crypto    文件:CMSEnvelopedDataParser.java   
public CMSEnvelopedDataParser(
    InputStream    envelopedData) 
    throws CMSException, IOException
{
    super(envelopedData);

    this.attrNotRead = true;
    this.envelopedData = new EnvelopedDataParser((ASN1SequenceParser)_contentInfo.getContent(BERTags.SEQUENCE));

    // TODO Validate version?
    //ASN1Integer version = this._envelopedData.getVersion();

    OriginatorInfo info = this.envelopedData.getOriginatorInfo();

    if (info != null)
    {
        this.originatorInfo = new OriginatorInformation(info);
    }

    //
    // read the recipients
    //
    ASN1Set recipientInfos = ASN1Set.getInstance(this.envelopedData.getRecipientInfos().toASN1Primitive());

    //
    // read the encrypted content info
    //
    EncryptedContentInfoParser encInfo = this.envelopedData.getEncryptedContentInfo();
    this.encAlg = encInfo.getContentEncryptionAlgorithm();
    CMSReadable readable = new CMSProcessableInputStream(
        ((ASN1OctetStringParser)encInfo.getEncryptedContent(BERTags.OCTET_STRING)).getOctetStream());
    CMSSecureReadable secureReadable = new CMSEnvelopedHelper.CMSEnvelopedSecureReadable(
        this.encAlg, readable);

    //
    // build the RecipientInformationStore
    //
    this.recipientInfoStore = CMSEnvelopedHelper.buildRecipientInformationStore(
        recipientInfos, this.encAlg, secureReadable);
}
项目:Aki-SSL    文件:OriginatorInfoGenerator.java   
public OriginatorInformation generate()
{
    if (origCRLs != null)
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), CMSUtils.createDerSetFromList(origCRLs)));
    }
    else
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), null));
    }
}
项目:Aki-SSL    文件:CMSEnvelopedDataParser.java   
public CMSEnvelopedDataParser(
    InputStream    envelopedData) 
    throws CMSException, IOException
{
    super(envelopedData);

    this.attrNotRead = true;
    this.envelopedData = new EnvelopedDataParser((ASN1SequenceParser)_contentInfo.getContent(BERTags.SEQUENCE));

    // TODO Validate version?
    //ASN1Integer version = this._envelopedData.getVersion();

    OriginatorInfo info = this.envelopedData.getOriginatorInfo();

    if (info != null)
    {
        this.originatorInfo = new OriginatorInformation(info);
    }

    //
    // read the recipients
    //
    ASN1Set recipientInfos = ASN1Set.getInstance(this.envelopedData.getRecipientInfos().toASN1Primitive());

    //
    // read the encrypted content info
    //
    EncryptedContentInfoParser encInfo = this.envelopedData.getEncryptedContentInfo();
    this.encAlg = encInfo.getContentEncryptionAlgorithm();
    CMSReadable readable = new CMSProcessableInputStream(
        ((ASN1OctetStringParser)encInfo.getEncryptedContent(BERTags.OCTET_STRING)).getOctetStream());
    CMSSecureReadable secureReadable = new CMSEnvelopedHelper.CMSEnvelopedSecureReadable(
        this.encAlg, readable);

    //
    // build the RecipientInformationStore
    //
    this.recipientInfoStore = CMSEnvelopedHelper.buildRecipientInformationStore(
        recipientInfos, this.encAlg, secureReadable);
}
项目:irma_future_id    文件:CMSEnvelopedDataParser.java   
public CMSEnvelopedDataParser(
    InputStream    envelopedData) 
    throws CMSException, IOException
{
    super(envelopedData);

    this.attrNotRead = true;
    this.envelopedData = new EnvelopedDataParser((ASN1SequenceParser)_contentInfo.getContent(BERTags.SEQUENCE));

    // TODO Validate version?
    //DERInteger version = this._envelopedData.getVersion();

    OriginatorInfo info = this.envelopedData.getOriginatorInfo();

    if (info != null)
    {
        this.originatorInfo = new OriginatorInformation(info);
    }

    //
    // read the recipients
    //
    ASN1Set recipientInfos = ASN1Set.getInstance(this.envelopedData.getRecipientInfos().toASN1Primitive());

    //
    // read the encrypted content info
    //
    EncryptedContentInfoParser encInfo = this.envelopedData.getEncryptedContentInfo();
    this.encAlg = encInfo.getContentEncryptionAlgorithm();
    CMSReadable readable = new CMSProcessableInputStream(
        ((ASN1OctetStringParser)encInfo.getEncryptedContent(BERTags.OCTET_STRING)).getOctetStream());
    CMSSecureReadable secureReadable = new CMSEnvelopedHelper.CMSEnvelopedSecureReadable(
        this.encAlg, readable);

    //
    // build the RecipientInformationStore
    //
    this.recipientInfoStore = CMSEnvelopedHelper.buildRecipientInformationStore(
        recipientInfos, this.encAlg, secureReadable);
}
项目:irma_future_id    文件:OriginatorInfoGenerator.java   
public OriginatorInformation generate()
{
    if (origCRLs != null)
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), CMSUtils.createDerSetFromList(origCRLs)));
    }
    else
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), null));
    }
}
项目:irma_future_id    文件:CMSEnvelopedDataParser.java   
public CMSEnvelopedDataParser(
    InputStream    envelopedData) 
    throws CMSException, IOException
{
    super(envelopedData);

    this.attrNotRead = true;
    this.envelopedData = new EnvelopedDataParser((ASN1SequenceParser)_contentInfo.getContent(BERTags.SEQUENCE));

    // TODO Validate version?
    //DERInteger version = this._envelopedData.getVersion();

    OriginatorInfo info = this.envelopedData.getOriginatorInfo();

    if (info != null)
    {
        this.originatorInfo = new OriginatorInformation(info);
    }

    //
    // read the recipients
    //
    ASN1Set recipientInfos = ASN1Set.getInstance(this.envelopedData.getRecipientInfos().toASN1Primitive());

    //
    // read the encrypted content info
    //
    EncryptedContentInfoParser encInfo = this.envelopedData.getEncryptedContentInfo();
    this.encAlg = encInfo.getContentEncryptionAlgorithm();
    CMSReadable readable = new CMSProcessableInputStream(
        ((ASN1OctetStringParser)encInfo.getEncryptedContent(BERTags.OCTET_STRING)).getOctetStream());
    CMSSecureReadable secureReadable = new CMSEnvelopedHelper.CMSEnvelopedSecureReadable(
        this.encAlg, readable);

    //
    // build the RecipientInformationStore
    //
    this.recipientInfoStore = CMSEnvelopedHelper.buildRecipientInformationStore(
        recipientInfos, this.encAlg, secureReadable);
}
项目:irma_future_id    文件:OriginatorInfoGenerator.java   
public OriginatorInformation generate()
{
    if (origCRLs != null)
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), CMSUtils.createDerSetFromList(origCRLs)));
    }
    else
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), null));
    }
}
项目:bc-java    文件:CMSEnvelopedDataParser.java   
public CMSEnvelopedDataParser(
    InputStream    envelopedData) 
    throws CMSException, IOException
{
    super(envelopedData);

    this.attrNotRead = true;
    this.envelopedData = new EnvelopedDataParser((ASN1SequenceParser)_contentInfo.getContent(BERTags.SEQUENCE));

    // TODO Validate version?
    //DERInteger version = this._envelopedData.getVersion();

    OriginatorInfo info = this.envelopedData.getOriginatorInfo();

    if (info != null)
    {
        this.originatorInfo = new OriginatorInformation(info);
    }

    //
    // read the recipients
    //
    ASN1Set recipientInfos = ASN1Set.getInstance(this.envelopedData.getRecipientInfos().toASN1Primitive());

    //
    // read the encrypted content info
    //
    EncryptedContentInfoParser encInfo = this.envelopedData.getEncryptedContentInfo();
    this.encAlg = encInfo.getContentEncryptionAlgorithm();
    CMSReadable readable = new CMSProcessableInputStream(
        ((ASN1OctetStringParser)encInfo.getEncryptedContent(BERTags.OCTET_STRING)).getOctetStream());
    CMSSecureReadable secureReadable = new CMSEnvelopedHelper.CMSEnvelopedSecureReadable(
        this.encAlg, readable);

    //
    // build the RecipientInformationStore
    //
    this.recipientInfoStore = CMSEnvelopedHelper.buildRecipientInformationStore(
        recipientInfos, this.encAlg, secureReadable);
}
项目:bc-java    文件:OriginatorInfoGenerator.java   
public OriginatorInformation generate()
{
    if (origCRLs != null)
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), CMSUtils.createDerSetFromList(origCRLs)));
    }
    else
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), null));
    }
}
项目:bc-java    文件:CMSEnvelopedDataParser.java   
public CMSEnvelopedDataParser(
    InputStream    envelopedData) 
    throws CMSException, IOException
{
    super(envelopedData);

    this.attrNotRead = true;
    this.envelopedData = new EnvelopedDataParser((ASN1SequenceParser)_contentInfo.getContent(BERTags.SEQUENCE));

    // TODO Validate version?
    //DERInteger version = this._envelopedData.getVersion();

    OriginatorInfo info = this.envelopedData.getOriginatorInfo();

    if (info != null)
    {
        this.originatorInfo = new OriginatorInformation(info);
    }

    //
    // read the recipients
    //
    ASN1Set recipientInfos = ASN1Set.getInstance(this.envelopedData.getRecipientInfos().toASN1Primitive());

    //
    // read the encrypted content info
    //
    EncryptedContentInfoParser encInfo = this.envelopedData.getEncryptedContentInfo();
    this.encAlg = encInfo.getContentEncryptionAlgorithm();
    CMSReadable readable = new CMSProcessableInputStream(
        ((ASN1OctetStringParser)encInfo.getEncryptedContent(BERTags.OCTET_STRING)).getOctetStream());
    CMSSecureReadable secureReadable = new CMSEnvelopedHelper.CMSEnvelopedSecureReadable(
        this.encAlg, readable);

    //
    // build the RecipientInformationStore
    //
    this.recipientInfoStore = CMSEnvelopedHelper.buildRecipientInformationStore(
        recipientInfos, this.encAlg, secureReadable);
}
项目:bc-java    文件:OriginatorInfoGenerator.java   
public OriginatorInformation generate()
{
    if (origCRLs != null)
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), CMSUtils.createDerSetFromList(origCRLs)));
    }
    else
    {
        return new OriginatorInformation(new OriginatorInfo(CMSUtils.createDerSetFromList(origCerts), null));
    }
}
项目:ipack    文件:OriginatorInformation.java   
OriginatorInformation(OriginatorInfo originatorInfo)
{
    this.originatorInfo = originatorInfo;
}
项目:gwt-crypto    文件:OriginatorInformation.java   
OriginatorInformation(OriginatorInfo originatorInfo)
{
    this.originatorInfo = originatorInfo;
}
项目:Aki-SSL    文件:OriginatorInformation.java   
OriginatorInformation(OriginatorInfo originatorInfo)
{
    this.originatorInfo = originatorInfo;
}
项目:irma_future_id    文件:OriginatorInformation.java   
OriginatorInformation(OriginatorInfo originatorInfo)
{
    this.originatorInfo = originatorInfo;
}
项目:bc-java    文件:OriginatorInformation.java   
OriginatorInformation(OriginatorInfo originatorInfo)
{
    this.originatorInfo = originatorInfo;
}
项目:ipack    文件:OriginatorInformation.java   
/**
 * Return the underlying ASN.1 object defining this SignerInformation object.
 *
 * @return a OriginatorInfo.
 */
public OriginatorInfo toASN1Structure()
{
    return originatorInfo;
}
项目:gwt-crypto    文件:OriginatorInformation.java   
/**
 * Return the underlying ASN.1 object defining this SignerInformation object.
 *
 * @return a OriginatorInfo.
 */
public OriginatorInfo toASN1Structure()
{
    return originatorInfo;
}
项目:Aki-SSL    文件:OriginatorInformation.java   
/**
 * Return the underlying ASN.1 object defining this SignerInformation object.
 *
 * @return a OriginatorInfo.
 */
public OriginatorInfo toASN1Structure()
{
    return originatorInfo;
}
项目:irma_future_id    文件:OriginatorInformation.java   
/**
 * Return the underlying ASN.1 object defining this SignerInformation object.
 *
 * @return a OriginatorInfo.
 */
public OriginatorInfo toASN1Structure()
{
    return originatorInfo;
}
项目:bc-java    文件:OriginatorInformation.java   
/**
 * Return the underlying ASN.1 object defining this SignerInformation object.
 *
 * @return a OriginatorInfo.
 */
public OriginatorInfo toASN1Structure()
{
    return originatorInfo;
}