adding support for setting/unsetting auth key,  option added to demo console for java core
merging auth key support, except constructor