Package codec.asn1

Examples of codec.asn1.ASN1Integer


    public X509Crl(int i) {

  CertificateList = new ASN1Sequence(3);
  TBSCertList = new ASN1Sequence(6);

  version = new ASN1Integer(1);
  /**/// BUGFIX: optional feld must be false if respective parameter is
  // set
  /**/
  version.setOptional(false);
  /**/// version.setOptional(true);
View Full Code Here


     */
    public Payment(int quantity, String currency)
    {
        super(2);

        quantity_ = new ASN1Integer(quantity);
        if (!currency.equals(DEFAULT_CURRENCY))
        {
            currency_ = new ASN1IA5String(currency);
        }
    }
View Full Code Here

     */
    public Payment(int quantity)
    {
        super(1);

        quantity_ = new ASN1Integer(quantity);
    }
View Full Code Here

     */
    public Payment()
    {
        super(3);

        quantity_     = new ASN1Integer();
        currency_     = new ASN1IA5String();

        add(quantity_);
        add(new ASN1TaggedType(CURRENCY_TAG, currency_, true, true));
    }
View Full Code Here

     *
     * @param quantity DOCUMENT ME!
     */
    public void setQuantity(int quantity)
    {
        quantity_ = new ASN1Integer(quantity);
    }
View Full Code Here

     */
    public Person(int age, String name)
    {
        super(2);

        age_      = new ASN1Integer(age);
        name_     = new ASN1IA5String(name);
    }
View Full Code Here

     */
    public Person()
    {
        super(2);

        age_ = new ASN1Integer();
        age_.setOptional(true);
        name_ = new ASN1IA5String();

        add(age_);
        add(name_);
View Full Code Here

     *
     * @param age DOCUMENT ME!
     */
    public void setAge(int age)
    {
        age_ = new ASN1Integer(age);
        age_.setOptional(false);
    }
View Full Code Here

    public PBKDF2Params(
        byte[]  salt,
        int     iterationCount)
    {
        this.octStr = new DEROctetString(salt);
        this.iterationCount = new ASN1Integer(iterationCount);
    }
View Full Code Here

        int     iterationCount,
        int     keyLength)
    {
        this(salt, iterationCount);

        this.keyLength = new ASN1Integer(keyLength);
    }
View Full Code Here

TOP

Related Classes of codec.asn1.ASN1Integer

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.