File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed
sdk/identity/azure-identity/src/main/java/com/azure/identity Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change 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().clientId(
47- * "<your app client ID>").username("<your username>").password("<your password>").build();
48- * </pre>
49- * <!-- end com.azure.identity.credential.usernamepasswordcredential.construct -->
50- *
5136 * @see com.azure.identity
5237 * @see UsernamePasswordCredentialBuilder
5338 * @see DeviceCodeCredential
Original file line number Diff line number Diff line change 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().clientId(
36- * "<your app client ID>").username("<your username>").password("<your password>").build();
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.
You can’t perform that action at this time.
0 commit comments