Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update doc with the new overloaded method
Fang-Pen Lin24cbc51f3228
diff --git a/docs/sdks/languages/java.mdx b/docs/sdks/languages/java.mdxindex 6e949b118e..129aaafa2a 100644--- a/docs/sdks/languages/java.mdx+++ b/docs/sdks/languages/java.mdx@@ -143,6 +143,21 @@ var input = AwsAuthProvider.defaultProvider().toLoginInput("<machine-identity-id>");```+Since this is the most common use case for AWS authentication, we also provide an overloaded method for `AwsAuthLogin`:++```java+public void AwsAuthLogin(+ String identityId+)+throws InfisicalException+```++With this method, you can pass in the `identityId`, and it will retrieve AWS credentials automatically for you from your current environment:++```java+sdk.Auth().AwsAuthLogin("<machine-identity-id>");+```+If you prefer to retrieve AWS credentials manually from your local AWS environment, you can generate the login input by providing the AWS credentials yourself, as shown below:```java