flags -> intFlags solves "flags undefined Error" and use ndn.globalKeyManager