Home | History | Annotate | Download | only in asn1

Lines Matching defs:string

15     private final byte[]  string;
18 * return a printable string from the passed in object.
48 * return a Printable String from a tagged object.
74 * basic constructor - byte encoded string.
77 byte[] string)
79 this.string = string;
83 * basic constructor - this does not validate the string
86 String string)
88 this(string, false);
94 * @param string the base string to wrap.
95 * @param validate whether or not to check the string.
96 * @throws IllegalArgumentException if validate is true and the string
100 String string,
103 if (validate && !isPrintableString(string))
105 throw new IllegalArgumentException("string contains illegal characters");
108 this.string = Strings.toByteArray(string);
111 public String getString()
113 return Strings.fromByteArray(string);
118 return Arrays.clone(string);
128 return 1 + StreamUtil.calculateBodyLength(string.length) + string.length;
135 out.writeEncoded(BERTags.PRINTABLE_STRING, string);
140 return Arrays.hashCode(string);
153 return Arrays.areEqual(string, s.string);
156 public String toString()
162 * return true if the passed in String can be represented without
168 String str)