Class BCFKSStoreTest
- java.lang.Object
-
- org.bouncycastle.util.test.SimpleTest
-
- org.bouncycastle.jce.provider.test.BCFKSStoreTest
-
- All Implemented Interfaces:
Test
public class BCFKSStoreTest extends SimpleTest
Exercise the BCFKS KeyStore,
-
-
Constructor Summary
Constructors Constructor Description BCFKSStoreTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfailOnWrongPasswordTest(java.lang.String storeName)java.lang.StringgetName()static voidmain(java.lang.String[] args)voidperformTest()voidshouldCreateEmptyBCFKSNoPassword()voidshouldCreateEmptyBCFKSPassword()voidshouldFailOnRemovesOrOverwrite()voidshouldFailOnWrongPassword()voidshouldParseKWPKeyStore()voidshouldRejectInconsistentKeys()voidshouldStoreMultipleKeys()voidshouldStoreOneCertificate()voidshouldStoreOneCertificateWithDSASignature()voidshouldStoreOneCertificateWithECDSASignature()voidshouldStoreOneCertificateWithECDSASignatureAndCertificates()voidshouldStoreOneCertificateWithRSASignature()voidshouldStoreOneECKeyWithChain()voidshouldStoreOnePrivateKey()voidshouldStoreOnePrivateKeyWithChain()voidshouldStoreOnePrivateKeyWithChainEdDSA()voidshouldStoreOneSecretKey()voidshouldStoreSecretKeys()
-
-
-
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
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceTest- Specified by:
getNamein classSimpleTest
-
performTest
public void performTest() throws java.lang.Exception- Specified by:
performTestin classSimpleTest- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] args)
-
-