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 void
failOnWrongPasswordTest(java.lang.String storeName)
java.lang.String
getName()
static void
main(java.lang.String[] args)
void
performTest()
void
shouldCreateEmptyBCFKSNoPassword()
void
shouldCreateEmptyBCFKSPassword()
void
shouldFailOnRemovesOrOverwrite()
void
shouldFailOnWrongPassword()
void
shouldParseKWPKeyStore()
void
shouldRejectInconsistentKeys()
void
shouldStoreMultipleKeys()
void
shouldStoreOneCertificate()
void
shouldStoreOneCertificateWithDSASignature()
void
shouldStoreOneCertificateWithECDSASignature()
void
shouldStoreOneCertificateWithECDSASignatureAndCertificates()
void
shouldStoreOneCertificateWithRSASignature()
void
shouldStoreOneECKeyWithChain()
void
shouldStoreOnePrivateKey()
void
shouldStoreOnePrivateKeyWithChain()
void
shouldStoreOnePrivateKeyWithChainEdDSA()
void
shouldStoreOneSecretKey()
void
shouldStoreSecretKeys()
-
-
-
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:
getName
in interfaceTest
- Specified by:
getName
in classSimpleTest
-
performTest
public void performTest() throws java.lang.Exception
- Specified by:
performTest
in classSimpleTest
- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] args)
-
-