improve security token connection unit tests

This commit is contained in:
Vincent Breitmoser authored and Dominik Schürmann committed 2017-11-02 19:25:08 +01:00
1 parent b56a420aed
commit 3a818e8cde
3 files changed
+129 -33

No files matched your search

@@ -516,7 +516,8 @@ public class SecurityTokenConnection {
* 0xB8: Decipherment Key
* 0xA4: Authentication Key
*/
private void putKey(KeyType slot, CanonicalizedSecretKey secretKey, Passphrase passphrase, Passphrase adminPin)
@VisibleForTesting
void putKey(KeyType slot, CanonicalizedSecretKey secretKey, Passphrase passphrase, Passphrase adminPin)
throws IOException {
RSAPrivateCrtKey crtSecretKey;
ECPrivateKey ecSecretKey;