Lines Matching defs:cert

22 package org.apache.harmony.security.tests.javax.security.cert;
26 import java.security.cert.CertificateFactory;
31 import javax.security.cert.CertificateEncodingException;
32 import javax.security.cert.CertificateException;
33 import javax.security.cert.CertificateExpiredException;
34 import javax.security.cert.CertificateNotYetValidException;
35 import javax.security.cert.X509Certificate;
72 private java.security.cert.X509Certificate cert;
73 private javax.security.cert.X509Certificate tbt_cert;
81 this.cert = (java.security.cert.X509Certificate)
83 this.tbt_cert = X509Certificate.getInstance(cert.getEncoded());
84 } catch (java.security.cert.CertificateException e) {
87 this.cert = null;
88 } catch (javax.security.cert.CertificateException e) {
91 this.cert = null;
99 if (this.cert == null) {
106 new ByteArrayInputStream(cert.getEncoded());
109 } catch (java.security.cert.CertificateEncodingException e) {
133 if (this.cert == null) {
139 X509Certificate.getInstance(cert.getEncoded());
140 } catch (java.security.cert.CertificateEncodingException e) {
161 if (this.cert == null) {
188 if (this.cert == null) {
222 if (this.cert == null) {
235 if (this.cert == null) {
241 tbt_cert.getSerialNumber(), cert.getSerialNumber());
248 if (this.cert == null) {
254 tbt_cert.getIssuerDN(), cert.getIssuerDN());
261 if (this.cert == null) {
267 tbt_cert.getSubjectDN(), cert.getSubjectDN());
274 if (this.cert == null) {
280 tbt_cert.getNotBefore(), cert.getNotBefore());
287 if (this.cert == null) {
293 tbt_cert.getNotAfter(), cert.getNotAfter());
300 if (this.cert == null) {
306 tbt_cert.getSigAlgName(), cert.getSigAlgName());
313 if (this.cert == null) {
319 tbt_cert.getSigAlgOID(), cert.getSigAlgOID());
326 if (this.cert == null) {
333 cert.getSigAlgParams()));