Skip to content

Commit 8cca132

Browse files
Syntax fix
1 parent 4a65107 commit 8cca132

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/service-bus-messaging/jms-developer-guide.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ ConnectionFactory factory = new ServiceBusJmsConnectionFactory(tokenCredential,
109109
Create a [service principal](authenticate-application.md#register-your-application-with-an-azure-ad-tenant) on Azure, and use this identity to create a `TokenCredential`.
110110

111111
```java
112-
TokenCredential tokenCredential = new ClientSecretCredential("<tenant_id>", "<client_id>", "<client_secret>").build();
112+
TokenCredential tokenCredential = new new ClientSecretCredentialBuilder()
113+
                .tenantId("")
114+
                .clientId("")
115+
                .clientSecret("")
116+
                .build();;
113117
```
114118

115119
The Connection factory can then be instantiated with the below parameters.

0 commit comments

Comments
 (0)