Class BCFKSStoreTest

  • All Implemented Interfaces:
    Test

    public class BCFKSStoreTest
    extends SimpleTest
    Exercise the BCFKS KeyStore,
    • Constructor Detail

      • BCFKSStoreTest

        public BCFKSStoreTest()
    • Method Detail

      • shouldCreateEmptyBCFKSNoPassword

        public void shouldCreateEmptyBCFKSNoPassword()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCreateEmptyBCFKSPassword

        public void shouldCreateEmptyBCFKSPassword()
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreOneCertificate

        public void shouldStoreOneCertificate()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreOneCertificateWithECDSASignature

        public void shouldStoreOneCertificateWithECDSASignature()
                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreOneCertificateWithECDSASignatureAndCertificates

        public void shouldStoreOneCertificateWithECDSASignatureAndCertificates()
                                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreOneCertificateWithDSASignature

        public void shouldStoreOneCertificateWithDSASignature()
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreOneCertificateWithRSASignature

        public void shouldStoreOneCertificateWithRSASignature()
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreOnePrivateKey

        public void shouldStoreOnePrivateKey()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreOnePrivateKeyWithChain

        public void shouldStoreOnePrivateKeyWithChain()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreOnePrivateKeyWithChainEdDSA

        public void shouldStoreOnePrivateKeyWithChainEdDSA()
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreOneECKeyWithChain

        public void shouldStoreOneECKeyWithChain()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldRejectInconsistentKeys

        public void shouldRejectInconsistentKeys()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreMultipleKeys

        public void shouldStoreMultipleKeys()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldParseKWPKeyStore

        public void shouldParseKWPKeyStore()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreSecretKeys

        public void shouldStoreSecretKeys()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldFailOnWrongPassword

        public void shouldFailOnWrongPassword()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • failOnWrongPasswordTest

        public void failOnWrongPasswordTest​(java.lang.String storeName)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldFailOnRemovesOrOverwrite

        public void shouldFailOnRemovesOrOverwrite()
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreOneSecretKey

        public void shouldStoreOneSecretKey()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • performTest

        public void performTest()
                         throws java.lang.Exception
        Specified by:
        performTest in class SimpleTest
        Throws:
        java.lang.Exception
      • main

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