public static X509Certificate parseCertificate(String base64EncodedCertificate) throws CertificateException {
  CertificateFactory certificateFactory=CertificateFactory.getInstance("X.509");
  ByteArrayInputStream bIn=new ByteArrayInputStream(CashBoxUtils.base64Decode(base64EncodedCertificate,false));
  return (X509Certificate)certificateFactory.generateCertificate(bIn);
}

public static X509Certificate parseCertificate ( String base64EncodedCertificate ) throws CertificateException { CertificateFactory certificateFactory = CertificateFactory . getInstance ( "X.509" ) ; ByteArrayInputStream bIn = new ByteArrayInputStream ( CashBoxUtils . base64Decode ( base64EncodedCertificate , false ) ) ; return ( X509Certificate ) certificateFactory . generateCertificate ( bIn ) ; }
extract certificates from dep export format string representation
