Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Implements
public class UserNamePasswordParameters
implements com.microsoft.aad.msal4j.IAcquireTokenParameters
Object containing parameters for Username/Password flow. Can be used as parameter to acquireToken(UserNamePasswordParameters parameters)
For more details, see https://aka.ms/msal4j-username-password
Modifier and Type | Method and Description |
---|---|
static
User |
builder(Set<String> scopes, String username, char[] password)
Builder for User |
Claims |
claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims |
java.util.Map<java.lang.String,java.lang.String> |
extra Adds additional headers to the token request |
java.util.Map<java.lang.String,java.lang.String> |
extra Adds additional query parameters to the token request |
char[] | password() |
Pop |
proof |
@lombok.NonNull java.util.Set<java.lang.String> |
scopes()
Scopes application is requesting access to |
java.lang.String |
tenant()
Overrides the tenant value in the authority URL for this request |
@lombok.NonNull java.lang.String |
username()
Username of the account |
public static UserNamePasswordParameters.UserNamePasswordParametersBuilder builder(Set<String> scopes, String username, char[] password)
Builder for UserNameParameters
Parameters:
Returns:
public ClaimsRequest claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
public Map<String,String> extraHttpHeaders()
Adds additional headers to the token request
public Map<String,String> extraQueryParameters()
Adds additional query parameters to the token request
public char[] password()
public PopParameters proofOfPossession()
public @NonNull Set<String> scopes()
Scopes application is requesting access to
public String tenant()
Overrides the tenant value in the authority URL for this request
public @NonNull String username()
Username of the account
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in