Class org.lightningj.paywall.keymgmt.KeySerializationHelperSpec
Tests
Test |
Duration |
Result |
Verify that deserializeBTCPayServerKeyPair() throws InternalErrorException with pass phrase hint if passphrase is null or wrong |
0.002s |
passed |
Verify that deserializeBTCPayServerKeyPair() with null data throws InternalErrorException |
0.003s |
passed |
Verify that deserializeSecretKey() throws InternalErrorException for fault data |
0s |
passed |
Verify that deserializeSecretKey() throws InternalErrorException with password hint if pass phrase is wrong. |
0.324s |
passed |
Verify that serializeAsymKeyPair() generates valid key data with unencrypted private key and that deserializeKeyPair converts it back again. |
0.009s |
passed |
Verify that serializeAsymKeyPair() throws InternalErrorException with pass phrase hint if passphrase is null or empty |
0.001s |
passed |
Verify that serializeAsymKeyPair() throws InternalErrorException with pass phrase hint if passphrase is null or wrong |
0.003s |
passed |
Verify that serializeAsymKeyPair() with invalid data throws InternalErrorException |
0s |
passed |
Verify that serializeAsymKeyPair() with null data throws InternalErrorException |
0.002s |
passed |
Verify that serializeBTCPayServerKeyPair() generates valid key data with unencrypted private key and that deserializeKeyPair converts it back again. |
0.006s |
passed |
Verify that serializeBTCPayServerKeyPair() throws InternalErrorException with pass phrase hint if passphrase is null or empty |
0s |
passed |
Verify that serializeBTCPayServerKeyPair() with invalid data throws InternalErrorException |
0s |
passed |
Verify that serializeSecretKey() generates valid data and that deserializeSecretKey() can parse it |
0.213s |
passed |
Verify that serializeSecretKey() throws InternalErrorException for fault data |
0s |
passed |
Verify that serializeSecretKey() throws InternalErrorException for invalid pass phrase |
0.003s |
passed |