Home | History | Annotate | Download | only in asn1

Lines Matching defs:string

12  * Abstract base for the ASN.1 OCTET STRING data type
16 * DER form is always primitive single OCTET STRING, while
27 * NOTE — Where it is necessary to transfer part of an octet string
28 * before the entire OCTET STRING is available, the constructed encoding
78 * <p><b>9.2 String encoding forms</b></p>
80 * BIT STRING, OCTET STRING,and restricted character string
83 * encoding otherwise. The string fragments contained in
95 * <b>10.2 String encoding forms</b>
96 * For BIT STRING, OCTET STRING and restricted character string types,
105 byte[] string;
108 * return an Octet String from a tagged object.
133 * return an Octet String from the given object.
153 throw new IllegalArgumentException("failed to construct OCTET STRING from byte[]: " + e.getMessage());
172 * @param string the octets making up the octet string.
175 byte[] string)
177 if (string == null)
179 throw new NullPointerException("string cannot be null");
181 this.string = string;
185 * Return the content of the OCTET STRING as an InputStream.
187 * @return an InputStream representing the OCTET STRING's content.
191 return new ByteArrayInputStream(string);
197 * @return a parser based on this OCTET STRING
205 * Return the content of the OCTET STRING as a byte array.
207 * @return the byte[] representing the OCTET STRING's content.
211 return string;
229 return Arrays.areEqual(string, other.string);
239 return new DEROctetString(string);
244 return new DEROctetString(string);
250 public String toString()
252 return "#"+ Strings.fromByteArray(Hex.encode(string));