Package org.apache.geronimo.crypto.asn1

Examples of org.apache.geronimo.crypto.asn1.DERUTF8String


            {
                return new DERPrintableString(value);
            }
        }

        return new DERUTF8String(value);
    }
View Full Code Here


        this.string = string;
    }

    public DirectoryString(String string)
    {
        this.string = new DERUTF8String(string);
    }
View Full Code Here

            {
                return new DERPrintableString(value);
            }
        }

        return new DERUTF8String(value);
    }
View Full Code Here

        this.string = string;
    }

    public DirectoryString(String string)
    {
        this.string = new DERUTF8String(string);
    }
View Full Code Here

            for (X509ExtensionWrapper wrapper : extensions) {
                // Bouncycastle hates null values. So, set them to blank
                // if they are null
                String value = wrapper.getValue() == null ? "" :  wrapper.getValue();
                certGen.addExtension(wrapper.getOid(), wrapper.isCritical(),
                    new DERUTF8String(value));
            }
        }

        if (byteExtensions != null) {
            for (X509ByteExtensionWrapper wrapper : byteExtensions) {
View Full Code Here

      {
         case CONTENT_TYPE_IA5STRING:
            contents = (DERString)new DERIA5String (text);
            break;
         case CONTENT_TYPE_UTF8STRING:
            contents = (DERString)new DERUTF8String(text);
            break;
         case CONTENT_TYPE_VISIBLESTRING:
            contents = (DERString)new DERVisibleString(text);
            break;
         case CONTENT_TYPE_BMPSTRING:
            contents = (DERString)new DERBMPString(text);
            break;
         default:
            contents = (DERString)new DERUTF8String(text);
            break;
      }
   }
View Full Code Here

      {
         text = text.substring(0, DISPLAY_TEXT_MAXIMUM_SIZE);
      }
     
      contentType = CONTENT_TYPE_UTF8STRING;
      contents = new DERUTF8String(text);
   }
View Full Code Here

        else if (oid.equals(X509Name.C) || oid.equals(X509Name.SN) || oid.equals(X509Name.DN_QUALIFIER))
        {
             return new DERPrintableString(value);
        }       
       
        return new DERUTF8String(value);
    }
View Full Code Here

            {
                 return new DERPrintableString(value);
            }
        }
       
        return new DERUTF8String(value);
    }
View Full Code Here

        this.string = string;
    }

    public DirectoryString(String string)
    {
        this.string = new DERUTF8String(string);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.crypto.asn1.DERUTF8String

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.