diff --git a/Usage-Authorization.md b/Usage-Authorization.md index 350acea..c96721c 100644 --- a/Usage-Authorization.md +++ b/Usage-Authorization.md @@ -22,10 +22,10 @@ The connector currently supports four authorization methods. ##### Create new Token ```java // Create new token using the builder (supports all current parameters). - Token token = new TokenBuilder() - .withId("token-id") - .withDisplayName("token name") - .build(); + Token token = Token.builder() + .withId("token-id") + .withDisplayName("token name") + .build(); // Write token to Vault (orphan creatin and role binding possible). AuthResponse createResponse = connector.createToken(token); ```