Package codec.asn1

Examples of codec.asn1.ASN1SequenceOf


     * additional Professioninfo, coded in an octect String.
     */
    private ASN1OctetString addProfessionInfo = null;

    public ProfessionInfo() {
  professionItems = new ASN1SequenceOf(ASN1UTF8String.class);
  professionOids = new ASN1SequenceOf(ASN1ObjectIdentifier.class);
    }
View Full Code Here


     */
    public CertificateIssuerExtension(GeneralName generalName) throws Exception {
  super();
  setOID(new ASN1ObjectIdentifier(ID_CE_CERTIFICATE_ISSUER));
  setCritical(true);
  certIssuer = new ASN1SequenceOf(GeneralName.class);
  certIssuer.add(generalName);
  setValue(certIssuer);
    }
View Full Code Here

  subjectUniqueID_ = new ASN1BitString();
  subjectUniqueIDTag_ = new ASN1TaggedType(2, subjectUniqueID_, false,
    true);
  add(subjectUniqueIDTag_);

  extensions_ = new ASN1SequenceOf(X509Extension.class);
  extensionsTag_ = new ASN1TaggedType(3, extensions_, true, true);
  add(extensionsTag_);
    }
View Full Code Here

  ASN1Sequence _policyInformation = new ASN1Sequence();
  _policyInformation.add(policyIdentifier);

  if (policyQualifiers == null) {
      ASN1SequenceOf _policyQualifiers = new ASN1SequenceOf(
        ASN1Sequence.class);
      _policyQualifiers.setOptional(true);
      _policyInformation.add(_policyQualifiers);
  } else {
      policyQualifiers.setOptional(false);
      _policyInformation.add(policyQualifiers);
  }
View Full Code Here

  ASN1Sequence _policyQualifier = new ASN1Sequence(2);
  _policyQualifier.add(ID_QT_CPS.clone());
  _policyQualifier.add(locationOfCPS);
  _policyQualifier.setOptional(false);

  ASN1SequenceOf _policyQualifiers = new ASN1SequenceOf(
    ASN1Sequence.class);
  _policyQualifiers.add(_policyQualifier);
  _policyInformation.add(_policyQualifiers);

  certificatePoliciesSyntax.add(_policyInformation);
  setValue(certificatePoliciesSyntax);
    }
View Full Code Here

  /*
   * We do not support both choices of DistributionPointName, hence we
   * directly initialize the one we support rather than going through an
   * ASN1Choice (which just adds another layer of complication).
   */
  fullName_ = new ASN1SequenceOf(GeneralName.class);

  /*
   * We wrap the only CHOICE we support into the appropriate tagged type.
   */
  distributionPoint_ = new ASN1TaggedType(TAG_FULL_NAME, fullName_,
    false, false);
  /*
   * We wrap again. Flags are EXPLICIT and OPTIONAL.
   */
  distributionPointTag_ = new ASN1TaggedType(TAG_DISTRIBUTION_POINT,
    distributionPoint_, true, true);
  /*
   * Finally, we add the tagged type.
   */
  add(distributionPointTag_);

  /*
   * Next element with tag [1].
   */
  reasons_ = new ASN1BitString();
  reasonsTag_ = new ASN1TaggedType(TAG_REASONS, reasons_, false, true);
  add(reasonsTag_);

  /*
   * Final element with tag [2].
   */
  cRLIssuer_ = new ASN1SequenceOf(GeneralName.class);
  cRLIssuerTag_ = new ASN1TaggedType(TAG_CRL_ISSUER, cRLIssuer_, false,
    true);
  add(cRLIssuerTag_);
    }
View Full Code Here

  nextUpdate.addType(new ASN1UTCTime());
  nextUpdate.addType(new ASN1GeneralizedTime());

  TBSCertList.add(nextUpdate);

  revokedCertificates = new ASN1SequenceOf(CRLEntry.class);
  revokedCertificates.setOptional(true);
  TBSCertList.add(revokedCertificates);

  crlExtensions = new ASN1SequenceOf(X509Extension.class);
  // ASN1TaggedType crl_ext = new ASN1TaggedType(0, crlExtensions, true,
  // true);
  // TBSCertList.add(crl_ext);
  crlExtensionsTag = new ASN1TaggedType(0, crlExtensions, true, true);
  TBSCertList.add(crlExtensionsTag);
View Full Code Here

   * nextUpdate.addType(new ASN1UTCTime()); nextUpdate.addType(new
   * ASN1GeneralizedTime());
   *
   * TBSCertList.add(nextUpdate);
   */
  revokedCertificates = new ASN1SequenceOf(CRLEntry.class);
  revokedCertificates.setOptional(true);
  TBSCertList.add(revokedCertificates);

  crlExtensions = new ASN1SequenceOf(X509Extension.class);
  // ASN1TaggedType crl_ext = new ASN1TaggedType(0, crlExtensions, true,
  // true);
  // TBSCertList.add(crl_ext);
  crlExtensionsTag = new ASN1TaggedType(0, crlExtensions, true, true);
  TBSCertList.add(crlExtensionsTag);
View Full Code Here

   * we do not bother about any contents. The opaque object just reads
   * whatever is there (if there is something) without actually decoding
   * the PolicyQualifierInfo. Furthermore, it is OPTIONAL. Hence, we
   * generally omit it.
   */
  policyQualifiers_ = new ASN1SequenceOf(ASN1Opaque.class);
  policyQualifiers_.setOptional(true);

  add(policyIdentifier_);
  add(policyQualifiers_);
    }
View Full Code Here

  }
  if (value == null) {
      value = new ASN1Null();
  }
  type_ = oid;
  values_ = new ASN1Set(1);

  values_.add(value);

  add(oid);
  add(values_);
View Full Code Here

TOP

Related Classes of codec.asn1.ASN1SequenceOf

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.