Package codec.asn1

Examples of codec.asn1.ASN1SequenceOf


    public CertBag(java.security.cert.X509Certificate cert)
      throws java.security.cert.CertificateEncodingException {
  super(2);
  certId_ = new ASN1ObjectIdentifier("1.2.840.113549.1.9.22.1");
  add(certId_);
  x509Cert_ = new ASN1OctetString(cert.getEncoded());
  certValue_ = new ASN1TaggedType(0, x509Cert_, true);
  add(certValue_);
    }
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

     */
    public CertBag() {
  super(2);
  certId_ = new ASN1ObjectIdentifier();
  add(certId_);
  ASN1OpenType ot = new ASN1OpenType(reg_, certId_);
  certValue_ = new ASN1TaggedType(0, ot, true);
  add(certValue_);
    }
View Full Code Here

     */
    public void decode(Decoder decoder) throws ASN1Exception, IOException {
  super.decode(decoder);

  ASN1Type t;
  ASN1OpenType o;

  t = certValue_.getInnerType();
  if (t instanceof ASN1OpenType) {
      o = (ASN1OpenType) t;
      certValue_.setInnerType(o.getInnerType());
  }
    }
View Full Code Here

     */
    public CertificationRequest() {

  super(3);

  certificationRequestInfo_ = new ASN1Sequence();

  version_ = new ASN1Integer(0);
  certificationRequestInfo_.add(version_);

  subject_ = new Name();
View Full Code Here

    /**
     * Constructor that builds the data structure
     */
    public X509Certificate() {

  Certificate_ = new ASN1Sequence(3);

  tbsCertificate_ = new X509TBSCertificate();
  Certificate_.add(tbsCertificate_);

  signatureAlgorithm_ = new codec.x509.AlgorithmIdentifier();
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_,
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

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.