Package codec.asn1

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


    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

    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

    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

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

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

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

  attributes_ = new ASN1Set();
  add(new ASN1TaggedType(0, attributes_, false, true));
    }
View Full Code Here

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

  attributes_ = new ASN1Set();
  add(new ASN1TaggedType(0, attributes_, false, true));
    }
View Full Code Here

  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()));

      decode(dec);
View Full Code Here

     */
    public SecretBag() {
  super(2);
  ASN1ObjectIdentifier secretTypeId = new ASN1ObjectIdentifier();
  ASN1OpenType ot = new ASN1OpenType(reg_, secretTypeId);
  secretValue_ = new ASN1TaggedType(0, ot, true);
    }
View Full Code Here

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

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

  add(certificationRequestInfo_);

  signatureAlgorithmIdentifier_ = new AlgorithmIdentifier();
View Full Code Here

TOP

Related Classes of codec.asn1.ASN1SetOf

Copyright © 2018 www.massapicom. 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.