### YamlMime:JavaType uid: "com.azure.identity.UsernamePasswordCredential" fullName: "com.azure.identity.UsernamePasswordCredential" name: "UsernamePasswordCredential" nameWithType: "UsernamePasswordCredential" summary: "An AAD credential that acquires a token with a username and a password." inheritances: - "" inheritedMembers: - "java.lang.Object.clone()" - "java.lang.Object.equals(java.lang.Object)" - "java.lang.Object.finalize()" - "java.lang.Object.getClass()" - "java.lang.Object.hashCode()" - "java.lang.Object.notify()" - "java.lang.Object.notifyAll()" - "java.lang.Object.toString()" - "java.lang.Object.wait()" - "java.lang.Object.wait(long)" - "java.lang.Object.wait(long,int)" syntax: "public class UsernamePasswordCredential implements TokenCredential" methods: - uid: "com.azure.identity.UsernamePasswordCredential.authenticate()" fullName: "com.azure.identity.UsernamePasswordCredential.authenticate()" name: "authenticate()" nameWithType: "UsernamePasswordCredential.authenticate()" summary: "Authenticates the user using the specified username and password." syntax: "public Mono authenticate()" desc: "Authenticates the user using the specified username and password." returns: description: "The of the authenticated account." type: "<>" - uid: "com.azure.identity.UsernamePasswordCredential.authenticate(com.azure.core.credential.TokenRequestContext)" fullName: "com.azure.identity.UsernamePasswordCredential.authenticate(TokenRequestContext request)" name: "authenticate(TokenRequestContext request)" nameWithType: "UsernamePasswordCredential.authenticate(TokenRequestContext request)" summary: "Authenticates the user using the specified username and password." parameters: - description: "The details of the authentication request." name: "request" type: "" syntax: "public Mono authenticate(TokenRequestContext request)" desc: "Authenticates the user using the specified username and password." returns: description: "The of the authenticated account." type: "<>" - uid: "com.azure.identity.UsernamePasswordCredential.getToken(com.azure.core.credential.TokenRequestContext)" fullName: "com.azure.identity.UsernamePasswordCredential.getToken(TokenRequestContext request)" name: "getToken(TokenRequestContext request)" nameWithType: "UsernamePasswordCredential.getToken(TokenRequestContext request)" parameters: - name: "request" type: "" syntax: "public Mono getToken(TokenRequestContext request)" returns: type: "<>" type: "class" desc: "An AAD credential that acquires a token with a username and a password. Users with 2FA/MFA (Multi-factored auth) turned on will not be able to use this credential. Please use or instead, or create a service principal if you want to authenticate silently." implements: - "" metadata: {} package: "com.azure.identity" artifact: com.azure:azure-identity:1.5.5