Package org.shredzone.acme4j.util
Class KeyPairUtilsTest
java.lang.Object
org.shredzone.acme4j.util.KeyPairUtilsTest
Unit tests for
KeyPairUtils
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setup()
void
Test that ECDSA keypairs are generated.void
Test that RSA keypairs of the correct size are generated.void
Test that standard keypair generates a secure key pair.void
Test that constructor is private.void
Test that reading and writing keypairs work correctly.void
Test that reading and writing ECDSA keypairs work correctly.
-
Constructor Details
-
KeyPairUtilsTest
public KeyPairUtilsTest()
-
-
Method Details
-
setup
-
testCreateStandardKeyPair
Test that standard keypair generates a secure key pair. -
testCreateKeyPair
Test that RSA keypairs of the correct size are generated. -
testWriteAndRead
Test that reading and writing keypairs work correctly.- Throws:
IOException
-
testCreateECCKeyPair
Test that ECDSA keypairs are generated. -
testWriteAndReadEC
Test that reading and writing ECDSA keypairs work correctly.- Throws:
IOException
-
testPrivateConstructor
Test that constructor is private.- Throws:
Exception
-