Package codec.asn1

Examples of codec.asn1.ASN1ObjectIdentifier


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


     * Returns the OID for this structure.
     *
     * @return the OID
     */
    public ASN1ObjectIdentifier getOID() {
  return new ASN1ObjectIdentifier(OID_);
    }
View Full Code Here

    /**
     * The default constructor.
     */
    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

     *                the certicifate
     */
    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

    /**
     * @return the OID for this bag type.
     */
    public ASN1ObjectIdentifier getOID() {
  return new ASN1ObjectIdentifier(OID_);
    }
View Full Code Here

     * Default constructor.
     */
    public SafeBag() {
  super(3);

  bagId_ = new ASN1ObjectIdentifier();
  add(bagId_);

  ASN1OpenType ot = new ASN1OpenType(reg_, bagId_);
  bagValue_ = new ASN1TaggedType(0, ot, true);
  add(bagValue_);
View Full Code Here

    public DateOfCreationExtension(Date cDate, boolean crit) throws Exception {
  if (cDate == null) {
      throw (new Exception("Date was null, set Date to a proper value!"));
  }

  this.setOID(new ASN1ObjectIdentifier(EXTENSION_OID));
  creationDate = new ASN1GeneralizedTime(cDate);
  this.criticality = crit;
  this.setCritical(this.criticality);
  this.setValue(creationDate);
    }
View Full Code Here

    protected PKCS12OIDRegistry reg_ = new PKCS12OIDRegistry();

    public CRLBag() {
  super(2);
  crlId_ = new ASN1ObjectIdentifier();
  add(crlId_);
  ASN1OpenType ot = new ASN1OpenType(reg_, crlId_);
  crlValue_ = new ASN1TaggedType(0, ot, true);
  add(crlValue_);
    }
View Full Code Here

  add(crlValue_);
    }

    public CRLBag(X509Crl crl) throws java.security.cert.CRLException {
  super(2);
  crlId_ = new ASN1ObjectIdentifier("1.2.840.113549.1.9.23");
  add(crlId_);
  ASN1OctetString x509 = new ASN1OctetString(crl.getEncoded());
  crlValue_ = new ASN1TaggedType(0, x509, true);
  add(crlValue_);
    }
View Full Code Here

    /**
     * Returns the OID of this bag type.
     */
    public ASN1ObjectIdentifier getOID() {
  return new ASN1ObjectIdentifier(oid_);
    }
View Full Code Here

TOP

Related Classes of codec.asn1.ASN1ObjectIdentifier

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.