fix unit test and add new for divert-to-card promotion

This commit is contained in:
Vincent Breitmoser
2015-03-22 07:21:27 +01:00
parent 2e838e4cce
commit 5d5e06cabd
2 changed files with 33 additions and 6 deletions

View File

@@ -278,6 +278,10 @@ public class CanonicalizedSecretKey extends CanonicalizedPublicKey {
}
}
public byte[] getIv() {
return mSecretKey.getIV();
}
static class PrivateKeyNotUnlockedException extends RuntimeException {
// this exception is a programming error which happens when an operation which requires
// the private key is called without a previous call to unlock()