/** * Constructor from a ASN.1 CertificatePair structure. * * @param pair The <code>CertificatePair</code> ASN.1 object. */ public X509CertificatePair( CertificatePair pair) throws CertificateParsingException { if (pair.getForward() != null) { this.forward = new X509CertificateObject(pair.getForward()); } if (pair.getReverse() != null) { this.reverse = new X509CertificateObject(pair.getReverse()); } }
private X509CertificatePair readDERCrossCertificatePair( InputStream in) throws IOException, CertificateParsingException { ASN1InputStream dIn = new ASN1InputStream(in); ASN1Sequence seq = (ASN1Sequence)dIn.readObject(); CertificatePair pair = CertificatePair.getInstance(seq); return new X509CertificatePair(pair); }