我今天查看了 HelloWorld 示例代码。我想知道是否有办法隐藏凭据并将它们存储在配置文件中。如果我需要与其他人共享我的代码,他们可以使用他们的配置文件运行它而不暴露凭据吗?
这是我想隐藏信息的代码片段:
private static NoSQLHandle getNoSQLConnection() {
SignatureProvider authProvider = new
SignatureProvider(
"Your tenant OCID goes here",
"Your user OCID goes here",
"Your key fingerprint goes here",
new File("~/.oci/oci_api_key.pem"),
"The pass phrase for your key goes here".toCharArray());
有人可以建议吗?