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.String` | `getName()` |
    `static void` | `main​(java.lang.String[] args)` |
    `void` | `performTest()` |
    `void` | `testBrokenMagic()` |
    `void` | `testDoubleFirstBlob()` |
    `void` | `testInducedChecksumFailed()` | Induce a checksum failure in the first key block.
    `void` | `testKeyBoxWithBrokenMD5()` |
    `void` | `testKeyBoxWithMD5Sanity()` |
    `void` | `testNoFirstBlob()` |
    `void` | `testNullSource()` |
    `void` | `testSanityElGamal()` | Test load kb with El Gamal keys in it.
    `void` | `testSuccessfulLoad()` | Test loading a key store and extracting information.

    - ### Methods inherited from class org.bouncycastle.util.test.SimpleTest

      `areEqual, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### KeyBoxTest

          public KeyBoxTest()

  - ### Method Detail

    - #### main

          public static void main​(java.lang.String[] args)

    - #### getName

          public java.lang.String getName()

      Specified by:
        `getName` in interface `org.bouncycastle.util.test.Test`
      Specified by:
        `getName` in class `org.bouncycastle.util.test.SimpleTest`

    - #### testSuccessfulLoad

          public void testSuccessfulLoad()
                                  throws java.lang.Exception

      Test loading a key store and extracting information.
      Throws:
        `java.lang.Exception`

    - #### testSanityElGamal

          public void testSanityElGamal()
                                 throws java.lang.Exception

      Test load kb with El Gamal keys in it.
      Throws:
        `java.lang.Exception`

    - #### testInducedChecksumFailed

          public void testInducedChecksumFailed()
                                         throws java.lang.Exception

      Induce 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:
        `performTest` in class `org.bouncycastle.util.test.SimpleTest`
      Throws:
        `java.lang.Exception`