Data: Fix for change of default auth type,

handle old value from persistent cache
This commit is contained in:
zzz
2019-06-05 17:09:49 +00:00
parent 7cd60bb0e7
commit aab6529f62

View File

@ -89,6 +89,9 @@ public class BlindData {
_clearSPK = spk;
_blindType = blindType;
_secret = secret;
// fix, previous default was -1
if (authType < 0)
authType = AUTH_NONE;
if ((authType != AUTH_NONE && authKey == null) ||
(authType == AUTH_NONE && authKey != null))
throw new IllegalArgumentException();