Package codec.asn1

Examples of codec.asn1.ASN1BMPString


    /**
     * @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

    public EncryptedPrivateKeyInfo() {
  super(2);

  algorithm_ = new AlgorithmIdentifier();
  add(algorithm_);
  encryptedData_ = new ASN1OctetString();
  add(encryptedData_);
    }
View Full Code Here

  clear();

  algorithm_ = new AlgorithmIdentifier(algorithm, params);
  add(algorithm_);
  encryptedData_ = new ASN1OctetString(code);
  add(encryptedData_);
    }
View Full Code Here

  }

  // add localKeyId (if present)
  if ((lk_id != null) && (lk_id.length > 0)) {
      ASN1ObjectIdentifier lkOID = new ASN1ObjectIdentifier(LK_OID_);
      attrUserKeyId = new Attribute(lkOID, new ASN1OctetString(lk_id));
  }

  // both present -> add both
  if ((user_fn != null) && (lk_id != null)) {
      Attribute[] attr = new Attribute[2];
View Full Code Here

  add(version_);

  algorithm_ = new AlgorithmIdentifier();
  add(algorithm_);

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

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

  add(version_);

  algorithm_ = aid;
  add(algorithm_);

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

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

  } catch (IOException e) {
      throw new InconsistentStateException("Caught IOException!");
  } catch (ASN1Exception e) {
      throw new InconsistentStateException("Caught ASN1Exception!");
  }
  encodedKey_ = new ASN1OctetString(code);
  add(encodedKey_);

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

  add(version_);

  algorithm_ = new AlgorithmIdentifier();
  add(algorithm_);

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

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

TOP

Related Classes of codec.asn1.ASN1BMPString

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.