    public HexStringConfidentialKey(String id, int length) {
        super(id);
        if (length%2!=0)
            throw new IllegalArgumentException("length must be even: "+length);
        this.length = length;
    }