moved constructor check to correct place.
public BcKeyStoreSpi(int version)
{
this.version = version;
- if (version == 1 && Properties.isOverrideSet("org.bouncycastle.bks.enable_v1"))
- {
- throw new IllegalStateException("BKS-V1 not enabled");
- }
}
private class StoreEntry
@@ -1066,6 +1062,10 @@ public Std()
public Version1()
{
super(1);
+ if (Properties.isOverrideSet("org.bouncycastle.bks.enable_v1"))
+ {
+ throw new IllegalStateException("BKS-V1 not enabled");
+ }
}
}
