1 7 8 9 package org.enhydra.oyster.der; 10 11 import java.io.UnsupportedEncodingException ; 12 import org.enhydra.oyster.exception.SMIMEException; 13 import org.enhydra.oyster.exception.ErrorStorage; 14 15 16 20 public class DERIA5String extends DERObject { 21 22 29 public DERIA5String (String s0) throws SMIMEException 30 { 31 super(22); 32 byte[] temp = null; 33 try { 34 temp = s0.getBytes("ISO-8859-1"); 35 } 36 catch(Exception e) { 37 throw SMIMEException.getInstance(this, e, "constructor" ); 38 } 39 this.addContent(temp); 40 } 41 42 48 public DERIA5String (byte[] b0) throws SMIMEException 49 { 50 super(22); 51 this.addContent(b0); 52 } 53 } 54 55 56 57 | Popular Tags |