Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs(java-sdk): remove GetAccessToken, keep no-arg RevokeToken

IgorHorta5373eedad183
diff --git a/docs/sdks/languages/java.mdx b/docs/sdks/languages/java.mdx
index 08d35f6250..bed6d5d34d 100644
--- a/docs/sdks/languages/java.mdx
+++ b/docs/sdks/languages/java.mdx
@@ -77,21 +77,6 @@ The SDK methods are organized into the following high-level categories:
1. `Auth()`: Handles authentication methods.
2. `Secrets()`: Manages CRUD operations for secrets.
-### `GetAccessToken`
-
-Returns the access token currently stored in the SDK session. This is useful when you need to retrieve the token that was set by a login method or `SetAccessToken`.
-
-```java
-public String GetAccessToken()
-```
-
-```java
-String token = sdk.GetAccessToken();
-```
-
-**Returns:**
-- `String`: The access token currently stored in the SDK, or `null` if no token has been set.
-
### `Auth`
The `Auth` component provides methods for authentication: