1
package org.bouncycastle.asn1;
3
import java.io.IOException;
6
* DER PrintableString object.
8
public class DERPrintableString
13
public DERPrintableString(
20
* @param string - bytes representing the string
22
public DERPrintableString(
25
this.string = new String(string, 0);
28
public String getString()
35
return this.getString().hashCode();
38
public boolean equals(
41
if (!(o instanceof DERPrintableString))
46
DERPrintableString s = (DERPrintableString)o;
48
return this.getString().equals(s.getString());
55
byte[] bytes = new byte[string.length()];
57
string.getBytes(0, string.length(), bytes, 0);
59
out.writeEncoded(PRINTABLE_STRING, bytes);