improve security token connection unit tests

This commit is contained in:
Vincent Breitmoser
2017-10-31 14:55:53 +01:00
committed by Dominik Schürmann
parent b56a420aed
commit 3a818e8cde
3 changed files with 129 additions and 33 deletions

View File

@@ -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;