Examples of ASN1IA5String


Examples of codec.asn1.ASN1IA5String

     * 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

Examples of codec.asn1.ASN1IA5String

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

Examples of codec.asn1.ASN1IA5String

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

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

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

Examples of codec.asn1.ASN1IA5String

    public ErrorParameterType1()
    {
        super(2);

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

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

Examples of codec.asn1.ASN1IA5String

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

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

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

Examples of codec.asn1.ASN1IA5String

    public ErrorParameterType1()
    {
        super(2);

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

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

Examples of codec.asn1.ASN1IA5String

     */
    public Order(String productName, int neededQuantity)
    {
        super(2);

        productName_        = new ASN1IA5String(productName);
        neededQuantity_     = new ASN1Integer(neededQuantity);

        add(productName_);
        add(neededQuantity_);
    }
View Full Code Here

Examples of codec.asn1.ASN1IA5String

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

        productName_        = new ASN1IA5String();
        neededQuantity_     = new ASN1Integer();

        add(productName_);
        add(neededQuantity_);
    }
View Full Code Here

Examples of codec.asn1.ASN1IA5String

  otherName_ = new ASN1TaggedType(TYPE_OTHER_NAME, otherNameSequence_,
    false, false);
  addType(otherName_);

  rfc822N_ = new ASN1IA5String();
  rfc822Name_ = new ASN1TaggedType(TYPE_RFC822_NAME, rfc822N_, false,
    false);
  addType(rfc822Name_);

  dNSN_ = new ASN1IA5String();
  dNSName_ = new ASN1TaggedType(TYPE_DNS_NAME, dNSN_, false, false);
  addType(dNSName_);

  // x400Address is not supported yet...

  dirN_ = new Name();
  // directoryName *MUST* be marked explicit here for the decoding
  // operation
  // to succeed. see also the setDirectoryName() method for more
  // information
  // --volker roth & ralf weinmann
  directoryName_ = new ASN1TaggedType(TYPE_DIRECTORY_NAME, dirN_, true,
    false);
  addType(directoryName_);

  // ediPartyName is not supported yet...

  uniformResourceId_ = new ASN1IA5String();
  uniformResourceIdentifier_ = new ASN1TaggedType(
    TYPE_UNIFORM_RESOURCE_IDENTIFIER, uniformResourceId_, false,
    false);
  addType(uniformResourceIdentifier_);

View Full Code Here

Examples of codec.asn1.ASN1IA5String

     *
     * @param dnsname
     *                the name to be set
     */
    public void setDNSName(ASN1IA5String dnsname) {
  dNSN_ = new ASN1IA5String(new String(dnsname.getString()));

  dNSN_.setExplicit(false);
  dNSName_.setInnerType(dNSN_);
  setInnerType(dNSName_);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.