Package org.apache.harmony.security.asn1

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


   * 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_,
View Full Code Here


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

  crlEntry_.add(revocationDate_);

  crlEntryExtensions_ = new ASN1SequenceOf(X509Extension.class);
  crlEntryExtensions_.setOptional(true);
  crlEntry_.add(crlEntryExtensions_);
    }
View Full Code Here

  keyIdentifier = new ASN1OctetString();
  keyIdentifierTag = new ASN1TaggedType(KEY_IDENTIFIER_TYPE,
    keyIdentifier, false, true);
  authorityKeyIdentifier.add(keyIdentifierTag);

  certIssuer = new ASN1SequenceOf(GeneralName.class);

  certIssuerTag = new ASN1TaggedType(CERT_ISSUER_TYPE, certIssuer, false,
    true);
  authorityKeyIdentifier.add(certIssuerTag);
View Full Code Here

    /**
     * Constructor
     */
    public QCStatementExtension() throws ASN1Exception,
      CertificateEncodingException {
  value_ = new ASN1SequenceOf(QCStatement.class);

  setOID(new ASN1ObjectIdentifier(EXTENSION_OID));
  setCritical(false);
  setValue(value_);
    }
View Full Code Here

     * 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

TOP

Related Classes of org.apache.harmony.security.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.