Examples of ASN1SetOf


Examples of codec.asn1.ASN1SetOf

     */
    public Attribute() {
  super(2);

  type_ = new ASN1ObjectIdentifier();
  values_ = new ASN1SetOf(ASN1OpenType.class);

  add(type_);
  add(values_);
    }
View Full Code Here

Examples of codec.asn1.ASN1SetOf

  if (registry == null) {
      registry = OIDRegistry.getGlobalOIDRegistry();
  }
  type_ = new ASN1ObjectIdentifier();
  values_ = new ASN1SetOf(new DefinedByResolver(registry, type_));

  add(type_);
  add(values_);
    }
View Full Code Here

Examples of codec.asn1.ASN1SetOf

  add(algorithm_);

  encodedKey_ = new ASN1OctetString();
  add(encodedKey_);

  attributes_ = new ASN1SetOf(Attribute.class);
  add(new ASN1TaggedType(0, attributes_, false, true));
    }
View Full Code Here

Examples of codec.asn1.ASN1SetOf

  add(algorithm_);

  encodedKey_ = new ASN1OctetString();
  add(encodedKey_);

  attributes_ = new ASN1SetOf(Attribute.class);
  add(new ASN1TaggedType(0, attributes_, false, true));

  try {
      dec = new DERDecoder(new ByteArrayInputStream(key.getEncoded()));
View Full Code Here

Examples of codec.asn1.ASN1SetOf

  certificationRequestInfo_.add(subject_);

  subjectPublicKeyInfo_ = new SubjectPublicKeyInfo();
  certificationRequestInfo_.add(subjectPublicKeyInfo_);

  attributes_ = new ASN1SetOf(Attribute.class);
  certificationRequestInfo_.add(new ASN1TaggedType(0, attributes_, false,
    false));

  add(certificationRequestInfo_);
View Full Code Here

Examples of codec.asn1.ASN1SetOf

  ASN1OpenType ot = new ASN1OpenType(reg_, bagId_);
  bagValue_ = new ASN1TaggedType(0, ot, true);
  add(bagValue_);

  bagAttributes_ = new ASN1SetOf(Attribute.class);
  bagAttributes_.setOptional(true);
  add(bagAttributes_);
    }
View Full Code Here

Examples of codec.asn1.ASN1SetOf

     * @param attr
     *                an array of attributes to be set
     */
    public void setAttributes(Attribute[] attr) {
  if (attr != null && attr.length > 0) {
      bagAttributes_ = new ASN1SetOf(Attribute.class);
      for (int i = 0; i < attr.length; i++)
    bagAttributes_.add(attr[i]);
      add(bagAttributes_);
  }
    }
View Full Code Here

Examples of codec.asn1.ASN1SetOf

     * This method returns a new set of AttributeValueAssertions (AVA).
     *
     * @return The new instance to decode.
     */
    public ASN1Type newElement() {
  ASN1SetOf set;

  /*
   * Here, we add this instance as the resolver of the ASN1SetOf. Upon the
   * 'resolve' callback, the AVAs are added to the respective RDNs.
   */
  set = new ASN1SetOf(this, 1);
  super.add(set);

  return set;
    }
View Full Code Here

Examples of codec.asn1.ASN1SetOf

    public SignedAndEnvelopedData() {
  super(6);

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

  recipients_ = new ASN1SetOf(RecipientInfo.class);
  add(recipients_);

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

  info_ = new EncryptedContentInfo();
  add(info_);

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

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

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

Examples of codec.asn1.ASN1SetOf

      throws InvalidAlgorithmParameterException {
  super(6);

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

  recipients_ = new ASN1SetOf(RecipientInfo.class);
  add(recipients_);

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

  info_ = new EncryptedContentInfo(bea, bek, params);
  add(info_);

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

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

  sInfos_ = new ASN1SetOf(SignerInfo.class);
  add(sInfos_);
    }
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.