Examples of ASN1SetOf


Examples of codec.asn1.ASN1SetOf

     */
    public EnvelopedData() {
  super(3);

  version_ = new ASN1Integer(0);
  recipients_ = new ASN1SetOf(RecipientInfo.class);
  info_ = new EncryptedContentInfo();

  add(version_); // version
  add(recipients_);
  add(info_);
View Full Code Here

Examples of codec.asn1.ASN1SetOf

    public EnvelopedData(SecretKey bek, String bea, AlgorithmParameters params)
      throws InvalidAlgorithmParameterException {
  super(3);

  version_ = new ASN1Integer(0);
  recipients_ = new ASN1SetOf(RecipientInfo.class);
  info_ = new EncryptedContentInfo(bea, bek, params);

  add(version_); // version
  add(recipients_);
  add(info_);
View Full Code Here

Examples of codec.asn1.ASN1SetOf

    public SignedData() {
  super(6);

  add(new ASN1Integer(1)); // version

  digestID_ = new ASN1SetOf(AlgorithmIdentifier.class);
  add(digestID_);

  content_ = new ContentInfo();
  add(content_);

  certs_ = new Certificates();
  add(new ASN1TaggedType(0, certs_, false, true));

  crls_ = new ASN1SetOf(ASN1Opaque.class);
  add(new ASN1TaggedType(1, crls_, false, true));

  infos_ = new ASN1SetOf(SignerInfo.class);
  add(infos_);
    }
View Full Code Here

Examples of codec.asn1.ASN1SetOf

    public SignedData(int _version) {
  super(6);

  add(new ASN1Integer(_version)); // version

  digestID_ = new ASN1SetOf(AlgorithmIdentifier.class);
  add(digestID_);

  content_ = new ContentInfo();
  add(content_);

  certs_ = new Certificates();
  add(new ASN1TaggedType(0, certs_, false, true));

  crls_ = new ASN1SetOf(ASN1Opaque.class);
  add(new ASN1TaggedType(1, crls_, false, true));

  infos_ = new ASN1SetOf(SignerInfo.class);
  add(infos_);
    }
View Full Code Here

Examples of org.apache.harmony.security.asn1.ASN1SetOf

     */
    public static ASN1Sequence getASN1(InformationObjectSet set) {
        ASN1OpenType.Id id = new ASN1OpenType.Id();
        ASN1OpenType any = new ASN1OpenType(id, set);

        return new ASN1Sequence(new ASN1Type[] { id, new ASN1SetOf(any) });
    }
View Full Code Here

Examples of org.apache.harmony.security.asn1.ASN1SetOf

     */
    public static ASN1Sequence getASN1(InformationObjectSet set) {
        ASN1OpenType.Id id = new ASN1OpenType.Id();
        ASN1OpenType any = new ASN1OpenType(id, set);

        return new ASN1Sequence(new ASN1Type[] { id, new ASN1SetOf(any) });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.