Skip to content

Commit f3f591b

Browse files
authored
cleanup code snippets for deprecated cred (Azure#45194)
1 parent d566c6e commit f3f591b

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

sdk/identity/azure-identity/src/main/java/com/azure/identity/UsernamePasswordCredential.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,6 @@
3333
* <p>In the scenario where 2FA/MFA (Multi-factored) authentication is turned on, please use
3434
* {@link DeviceCodeCredential} or {@link InteractiveBrowserCredential} instead.</p>
3535
*
36-
* <p><strong>Sample: Construct UsernamePasswordCredential</strong></p>
37-
*
38-
* <p>The following code sample demonstrates the creation of a {@link UsernamePasswordCredential},
39-
* using the {@link UsernamePasswordCredentialBuilder} to configure it. The {@code clientId},
40-
* {@code username} and {@code password} parameters are required to create
41-
* {@link UsernamePasswordCredential}. Once this credential is created, it may be passed into the
42-
* builder of many of the Azure SDK for Java client builders as the 'credential' parameter.</p>
43-
*
44-
* <!-- src_embed com.azure.identity.credential.usernamepasswordcredential.construct -->
45-
* <pre>
46-
* TokenCredential usernamePasswordCredential = new UsernamePasswordCredentialBuilder&#40;&#41;.clientId&#40;
47-
* &quot;&lt;your app client ID&gt;&quot;&#41;.username&#40;&quot;&lt;your username&gt;&quot;&#41;.password&#40;&quot;&lt;your password&gt;&quot;&#41;.build&#40;&#41;;
48-
* </pre>
49-
* <!-- end com.azure.identity.credential.usernamepasswordcredential.construct -->
50-
*
5136
* @see com.azure.identity
5237
* @see UsernamePasswordCredentialBuilder
5338
* @see DeviceCodeCredential

sdk/identity/azure-identity/src/main/java/com/azure/identity/UsernamePasswordCredentialBuilder.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,6 @@
2222
* <a href="https://aka.ms/azsdk/java/identity/usernamepasswordcredential/docs">conceptual knowledge and configuration
2323
* details</a>.</p>
2424
*
25-
* <p><strong>Sample: Construct UsernamePasswordCredential</strong></p>
26-
*
27-
* <p>The following code sample demonstrates the creation of a {@link UsernamePasswordCredential},
28-
* using the {@link UsernamePasswordCredentialBuilder} to configure it. The {@code clientId},
29-
* {@code username} and {@code password} parameters are required to create
30-
* {@link UsernamePasswordCredential}. Once this credential is created, it may be passed into the
31-
* builder of many of the Azure SDK for Java client builders as the 'credential' parameter.</p>
32-
*
33-
* <!-- src_embed com.azure.identity.credential.usernamepasswordcredential.construct -->
34-
* <pre>
35-
* TokenCredential usernamePasswordCredential = new UsernamePasswordCredentialBuilder&#40;&#41;.clientId&#40;
36-
* &quot;&lt;your app client ID&gt;&quot;&#41;.username&#40;&quot;&lt;your username&gt;&quot;&#41;.password&#40;&quot;&lt;your password&gt;&quot;&#41;.build&#40;&#41;;
37-
* </pre>
38-
* <!-- end com.azure.identity.credential.usernamepasswordcredential.construct -->
39-
*
4025
* @see UsernamePasswordCredential
4126
*
4227
* @deprecated This credential is deprecated because it doesn't support multifactor authentication (MFA). See <a href="https://aka.ms/azsdk/identity/mfa">here</a> for details about MFA enforcement for Microsoft Entra ID and migration guidance.

0 commit comments

Comments
 (0)