Java 类org.bouncycastle.asn1.x509.CertificatePair 实例源码

项目:ipack    文件:X509CertificatePair.java   
/**
 * 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());
    }
}
项目:ipack    文件:X509CertPairParser.java   
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);
}
项目:Aki-SSL    文件:X509CertificatePair.java   
/**
 * 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());
    }
}
项目:Aki-SSL    文件:X509CertPairParser.java   
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);
}
项目:CryptMeme    文件:X509CertificatePair.java   
/**
 * 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());
    }
}
项目:CryptMeme    文件:X509CertPairParser.java   
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);
}
项目:irma_future_id    文件:X509CertificatePair.java   
/**
 * 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());
    }
}
项目:irma_future_id    文件:X509CertPairParser.java   
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);
}
项目:bc-java    文件:X509CertificatePair.java   
/**
 * 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());
    }
}
项目:bc-java    文件:X509CertPairParser.java   
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);
}