Skip to content

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

docs(java-sdk): add token revocation methods to Auth documentation

IgorHortaeb15359f06eb
diff --git a/docs/sdks/languages/java.mdx b/docs/sdks/languages/java.mdx
index f6ddaad582..55b917a17d 100644
--- a/docs/sdks/languages/java.mdx
+++ b/docs/sdks/languages/java.mdx
@@ -105,6 +105,40 @@ sdk.Auth().UniversalAuthLogin(
- `clientId` (string): The client ID of your Machine Identity.
- `clientSecret` (string): The client secret of your Machine Identity.
+#### Revoking
+
+```java
+public void RevokeToken(
+ String accessToken
+)
+throws InfisicalException
+```
+
+```java
+sdk.Auth().RevokeToken("ACCESS_TOKEN");
+```
+
+**Parameters:**
+- `accessToken` (String): The access token to revoke.
+
+### Token Auth
+
+#### Revoking
+
+```java
+public void RevokeTokenById(
+ String tokenId
+)
+throws InfisicalException
+```
+
+```java
+sdk.Auth().RevokeTokenById("<token-id>");
+```
+
+**Parameters:**
+- `tokenId` (String): The ID of the token to revoke.
+
### AWS Auth
```java