Package org.bouncycastle.util.test

Examples of org.bouncycastle.util.test.TestResult


        return new SimpleTestResult(true, getName() + ": test " + id + " Okay");
    }

    public TestResult perform()
    {
        TestResult  result = test(0, sample1);
        if (!result.isSuccessful())
        {
            return result;
        }

        result = test(1, sample2);
        if (!result.isSuccessful())
        {
            return result;
        }

        result = test(2, sample3);
        if (!result.isSuccessful())
        {
            return result;
        }

        return new SimpleTestResult(true, getName() + ": Okay");
View Full Code Here


    public static void main(
        String[]    args)
    {
        Test    test = new EncryptedPrivateKeyInfoTest();

        TestResult  result = test.perform();

        System.out.println(result.toString());
    }
View Full Code Here

    public static void main(
        String[]    args)
    {
        Test    test = new GeneralizedTimeTest();

        TestResult  result = test.perform();

        System.out.println(result);
    }
View Full Code Here

        String[]    args)
    {
        Security.addProvider(new BouncyCastleProvider());

        Test            test = new SigTest();
        TestResult      result = test.perform();

        System.out.println(result.toString());
    }
View Full Code Here

            if (!certPath2.equals(certPath1))
            {
                return new SimpleTestResult(false,  this.getName() + ": CertPath differ after encoding and decoding.");
            }
           
            TestResult res = testExceptions();

            if (!res.isSuccessful())
            {
                return res;
            }
        }
        catch (Exception e)
View Full Code Here

        String[] args)
    {
        Security.addProvider(new BouncyCastleProvider());

        Test            test = new CertPathTest();
        TestResult        result = test.perform();

        System.out.println(result.toString());
    }
View Full Code Here

        else
        {
            test = new NamedCurveTest(args[0]);
        }

        TestResult      result = test.perform();

        System.out.println(result.toString());
    }
View Full Code Here

        return new SimpleTestResult(true, getName() + ": Okay");
    }

    public TestResult perform()
    {
        TestResult    result = checkCipher("RC4");
       
        if (!result.isSuccessful())
        {
            return result;
        }
       
        result = checkCipher("DES/CBC/PKCS5Padding");
       
        if (!result.isSuccessful())
        {
            return result;
        }
       
        return checkCipher("Rijndael");
View Full Code Here

        String[]    args)
    {
        Security.addProvider(new BouncyCastleProvider());

        Test            test = new DoFinalTest();
        TestResult      result = test.perform();

        System.out.println(result.toString());
    }
View Full Code Here

        String[]    args)
    {
        Security.addProvider(new BouncyCastleProvider());

        Test            test = new NetscapeCertRequestTest();
        TestResult      result = test.perform();

        System.out.println(result.toString());
    }
View Full Code Here

TOP

Related Classes of org.bouncycastle.util.test.TestResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.