Package org.bouncycastle.gpg.test
Class KeyBoxTest
- java.lang.Object
-
- org.bouncycastle.util.test.SimpleTest
-
- org.bouncycastle.gpg.test.KeyBoxTest
-
- All Implemented Interfaces:
org.bouncycastle.util.test.Test
public class KeyBoxTest extends org.bouncycastle.util.test.SimpleTest
-
-
Constructor Summary
Constructors Constructor Description KeyBoxTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()static voidmain(java.lang.String[] args)voidperformTest()voidtestBrokenMagic()voidtestDoubleFirstBlob()voidtestInducedChecksumFailed()Induce a checksum failure in the first key block.voidtestKeyBoxWithBrokenMD5()voidtestKeyBoxWithMD5Sanity()voidtestNoFirstBlob()voidtestNullSource()voidtestSanityElGamal()Test load kb with El Gamal keys in it.voidtestSuccessfulLoad()Test loading a key store and extracting information.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceorg.bouncycastle.util.test.Test- Specified by:
getNamein classorg.bouncycastle.util.test.SimpleTest
-
testSuccessfulLoad
public void testSuccessfulLoad() throws java.lang.ExceptionTest loading a key store and extracting information.- Throws:
java.lang.Exception
-
testSanityElGamal
public void testSanityElGamal() throws java.lang.ExceptionTest load kb with El Gamal keys in it.- Throws:
java.lang.Exception
-
testInducedChecksumFailed
public void testInducedChecksumFailed() throws java.lang.ExceptionInduce a checksum failure in the first key block.- Throws:
java.lang.Exception
-
testBrokenMagic
public void testBrokenMagic() throws java.lang.Exception- Throws:
java.lang.Exception
-
testNullSource
public void testNullSource() throws java.lang.Exception- Throws:
java.lang.Exception
-
testNoFirstBlob
public void testNoFirstBlob() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDoubleFirstBlob
public void testDoubleFirstBlob() throws java.lang.Exception- Throws:
java.lang.Exception
-
testKeyBoxWithMD5Sanity
public void testKeyBoxWithMD5Sanity() throws java.lang.Exception- Throws:
java.lang.Exception
-
testKeyBoxWithBrokenMD5
public void testKeyBoxWithBrokenMD5() throws java.lang.Exception- Throws:
java.lang.Exception
-
performTest
public void performTest() throws java.lang.Exception- Specified by:
performTestin classorg.bouncycastle.util.test.SimpleTest- Throws:
java.lang.Exception
-
-