Java 类org.bouncycastle.openpgp.examples.SignedFileProcessor 实例源码

项目:CryptMeme    文件:AllTests.java   
private void checkSigning(String type)
    throws Exception
{
    _currentOut.reset();

    SignedFileProcessor.main(new String[] { "-s", "test.txt", "secret." + type, "password" });

    SignedFileProcessor.main(new String[] { "-v", "test.txt.bpg", "pub." + type });

    assertEquals("signature verified.", getLine(_currentOut));

    SignedFileProcessor.main(new String[] { "-s", "-a", "test.txt", "secret." + type, "password" });

    SignedFileProcessor.main(new String[] { "-v", "test.txt.asc", "pub." + type });

    assertEquals("signature verified.", getLine(_currentOut));
}
项目:irma_future_id    文件:AllTests.java   
private void checkSigning(String type)
    throws Exception
{
    _currentOut.reset();

    SignedFileProcessor.main(new String[] { "-s", "test.txt", "secret." + type, "password" });

    SignedFileProcessor.main(new String[] { "-v", "test.txt.bpg", "pub." + type });

    assertEquals("signature verified.", getLine(_currentOut));

    SignedFileProcessor.main(new String[] { "-s", "-a", "test.txt", "secret." + type, "password" });

    SignedFileProcessor.main(new String[] { "-v", "test.txt.asc", "pub." + type });

    assertEquals("signature verified.", getLine(_currentOut));
}
项目:bc-java    文件:AllTests.java   
private void checkSigning(String type)
    throws Exception
{
    _currentOut.reset();

    SignedFileProcessor.main(new String[] { "-s", "test.txt", "secret." + type, "password" });

    SignedFileProcessor.main(new String[] { "-v", "test.txt.bpg", "pub." + type });

    assertEquals("signature verified.", getLine(_currentOut));

    SignedFileProcessor.main(new String[] { "-s", "-a", "test.txt", "secret." + type, "password" });

    SignedFileProcessor.main(new String[] { "-v", "test.txt.asc", "pub." + type });

    assertEquals("signature verified.", getLine(_currentOut));
}