Package codec.asn1

Examples of codec.asn1.ASN1IA5String


  Attribute attrUserKeyId = null;

  // Add friendlyName (if present)
  if ((user_fn != null) && !user_fn.equals("")) {
      ASN1ObjectIdentifier fnOID = new ASN1ObjectIdentifier(FN_OID_);
      attrUserFn = new Attribute(fnOID, new ASN1BMPString(user_fn));
  }

  // add localKeyId (if present)
  if ((lk_id != null) && (lk_id.length > 0)) {
      ASN1ObjectIdentifier lkOID = new ASN1ObjectIdentifier(LK_OID_);
View Full Code Here


  add(certificationRequestInfo_);

  signatureAlgorithmIdentifier_ = new AlgorithmIdentifier();
  add(signatureAlgorithmIdentifier_);

  signature_ = new ASN1BitString();
  add(signature_);
    }
View Full Code Here

    list.add(o);
      }
      values_.clear();
      values_.addAll(list);
  } catch (ClassCastException e) {
      throw new ASN1Exception("Unexpected type in SET OF!");
  } catch (NullPointerException e) {
      throw new ASN1Exception("NULL in SET OF!");
  }
    }
View Full Code Here

      ByteArrayInputStream bais = new ByteArrayInputStream(enc);

      decode(new DERDecoder(bais));
      bais.close();
  } catch (IOException e) {
      throw new ASN1Exception(e.getMessage());
  }
    }
View Full Code Here

      encode(new DEREncoder(baos));
      res = baos.toByteArray();
      baos.close();
  } catch (IOException e) {
      throw new ASN1Exception(e.getMessage());
  }
  return res;

    }
View Full Code Here

     * ASN.1 PrintableString. Hence, we have to take a IA5String
     * instead.
     */
    if (entry.getKey().equalsIgnoreCase("EMAILADDRESS")
      || entry.getKey().equalsIgnoreCase("UID")) {
        seq.add(new ASN1IA5String(val));
    } else if (entry.getKey().equalsIgnoreCase("C")
      || entry.getKey().equalsIgnoreCase("SERIALNUMBER")) {
        seq.add(new ASN1PrintableString(val));
    } else {
        switch (currentEncoding_) {
        case (ASN1.TAG_UTF8STRING):
      seq.add(new ASN1UTF8String(val));
      break;
        case (ASN1.TAG_IA5STRING):
      seq.add(new ASN1IA5String(val));
      break;
        case (ASN1.TAG_PRINTABLESTRING):
      if (checkPrintableSpelling(val)) {
          seq.add(new ASN1PrintableString(val));
      } else {
View Full Code Here

    /**
     * in case of an empty conctructor default values are set.
     */
    public AccessDescription() {
  accessLocation = new GeneralName();
  accessLocation.setUniformResourceIdentifier(new ASN1IA5String(
    "http://ocsptest:8080/ocsp"));
  accessMethod = new ASN1ObjectIdentifier("1.3.6.1.5.5.7.48.1");

  add(accessMethod);
  add(accessLocation);
View Full Code Here

    public ErrorParameterType1(boolean critical, String info)
    {
        super(2);

        critical_     = new ASN1Boolean(critical);
        info_         = new ASN1IA5String(info);

        add(critical_);
        add(info_);
    }
View Full Code Here

    public ErrorParameterType1()
    {
        super(2);

        critical_     = new ASN1Boolean();
        info_         = new ASN1IA5String();

        add(critical_);
        add(info_);
    }
View Full Code Here

    public ErrorParameterType1(boolean critical, String info)
    {
        super(2);

        critical_     = new ASN1Boolean(critical);
        info_         = new ASN1IA5String(info);

        add(critical_);
        add(info_);
    }
View Full Code Here

TOP

Related Classes of codec.asn1.ASN1IA5String

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.