Hi Amarnath,
Please check below note for sec_info & reg_info for AS JAVA.
1529849 - Gateway security setting in an SCS instance, AS Java
I believe you can not follow the same process as of ABAP stack for reading the gateway security files.
Thanks,
Manish