1 7 8 9 package org.enhydra.oyster.cms; 10 11 import org.enhydra.oyster.exception.SMIMEException; 12 import org.enhydra.oyster.exception.ErrorStorage; 13 import org.enhydra.oyster.der.DERClassContextSpecificPr; 14 import java.security.cert.X509Certificate ; 15 16 17 24 public class Certificates extends DERClassContextSpecificPr { 25 26 30 public Certificates () throws SMIMEException 31 { 32 super(0, true); 33 } 34 35 42 public void addCertificate (X509Certificate cert0) throws SMIMEException { 43 try { 44 super.addContent(cert0.getEncoded()); 45 } 46 catch(Exception e) { 47 throw SMIMEException.getInstance(this, e, "addCertificate" ); 48 } 49 } 50 } 51 52 53 54 | Popular Tags |