I did a hack. I wrote OS bitness to commentary field and overrode shouldCheckForUpdate method in UpdateHandler, it's looks working now.
Now I want sign my config. Everything works good with RSA key but if I use ECDSA key I get
java.security.NoSuchAlgorithmException: SHA256withEC Signature not available at
Signature sign = Signature.getInstance("SHA256with" + key.getAlgorithm())
this line from ConfigMapper.java:239.
I belive it happens because of naming of algorithms, in java for ECDSA right alg name is "EC"
KeyFactory.getInstance("EC") and therefore my key.getAlgorithm() is "EC" and
Signature.getInstance("SHA256with" + key.getAlgorithm()) generates "SHA256withEC" instead of "SHA256withECDSA".
Is it bug or feature ?
DynamicClassLoaderas explained here.