Java 类org.bouncycastle.asn1.icao.CscaMasterList 实例源码

项目:gwt-crypto    文件:CscaMasterListTest.java   
public void performTest()
    throws Exception
{
    byte[] input = getInput("masterlist-content.data");
    CscaMasterList parsedList
        = CscaMasterList.getInstance(ASN1Primitive.fromByteArray(input));

    if (parsedList.getCertStructs().length != 3)
    {
        fail("Cert structure parsing failed: incorrect length");
    }

    byte[] output = parsedList.getEncoded();
    if (!Arrays.areEqual(input, output))
    {
        fail("Encoding failed after parse");
    }
}
项目:irma_future_id    文件:CscaMasterListTest.java   
public void performTest()
    throws Exception
{
    byte[] input = getInput("masterlist-content.data");
    CscaMasterList parsedList
        = CscaMasterList.getInstance(ASN1Primitive.fromByteArray(input));

    if (parsedList.getCertStructs().length != 3)
    {
        fail("Cert structure parsing failed: incorrect length");
    }

    byte[] output = parsedList.getEncoded();
    if (!Arrays.areEqual(input, output))
    {
        fail("Encoding failed after parse");
    }
}
项目:bc-java    文件:CscaMasterListTest.java   
public void performTest()
    throws Exception
{
    byte[] input = getInput("masterlist-content.data");
    CscaMasterList parsedList
        = CscaMasterList.getInstance(ASN1Primitive.fromByteArray(input));

    if (parsedList.getCertStructs().length != 3)
    {
        fail("Cert structure parsing failed: incorrect length");
    }

    byte[] output = parsedList.getEncoded();
    if (!Arrays.areEqual(input, output))
    {
        fail("Encoding failed after parse");
    }
}