Home | History | Annotate | Download | only in asn1

Lines Matching defs:string

9  * DER NumericString object - this is an ascii string of characters {0,1,2,3,4,5,6,7,8,9, }.
15 private final byte[] string;
18 * return a Numeric string from the passed in object
48 * return an Numeric String from a tagged object.
77 byte[] string)
79 this.string = 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 && !isNumericString(string))
105 throw new IllegalArgumentException("string contains illegal characters");
108 this.string = Strings.toByteArray(string);
111 public String getString()
113 return Strings.fromByteArray(string);
116 public String toString()
123 return Arrays.clone(string);
133 return 1 + StreamUtil.calculateBodyLength(string.length) + string.length;
140 out.writeEncoded(BERTags.NUMERIC_STRING, string);
145 return Arrays.hashCode(string);
158 return Arrays.areEqual(string, s.string);
162 * Return true if the string can be represented as a NumericString ('0'..'9', ' ')
164 * @param str string to validate.
168 String str)