1 package org.bouncycastle.asn1;
6 * DER IA5String object - this is an ascii string.
8 public class DERIA5String
15 * basic constructor - with bytes.
22 this.string = new String(string, "US-ASCII");
24 catch(UnsupportedEncodingException e)
26 throw new RuntimeException("PANIC: " + e);
31 * basic constructor - with string.
39 public String getString()
44 public byte[] getOctets()
48 return string.getBytes("US-ASCII");
50 catch(UnsupportedEncodingException e)
52 throw new RuntimeException("PANIC: " + e);
60 out.writeEncoded(IA5_STRING, this.getOctets());