Hello @MengWang1,
I'm sorry for the delay,
The attached procedure (password mode) would probably be possible to use from the application code,

But this hasn't been tested / validated, and it is not recommended, as in the case, the Password Authentication you would need to have the Plain ADKP recorded in the memory to make the authentication. This can leave the ADKP exposed as it is not in secure flash.
Also, there is no need to do it this way, there are scripts available for the debuggers to authenticate them via JTAG, this doesn't require to have the ADKP directly exposed in the memory of the MCU.
Regards,
Daniel