UserNamePasswordParameters Class
- java.
lang. Object - com.
microsoft. aad. msal4j. UserNamePasswordParameters
- com.
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
Method Summary
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> |
extraHttpHeaders()
Adds additional headers to the token request |
java.util.Map<java.lang.String,java.lang.String> |
extraQueryParameters()
Adds additional query parameters to the token request |
char[] | password() |
Pop |
proofOfPossession() |
@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 |
Methods inherited from java.lang.Object
Method Details
builder
public static UserNamePasswordParameters.UserNamePasswordParametersBuilder builder(Set
Builder for UserNameParameters
Parameters:
Returns:
claims
public ClaimsRequest claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
extraHttpHeaders
public Map
Adds additional headers to the token request
extraQueryParameters
public Map
Adds additional query parameters to the token request
password
public char[] password()
proofOfPossession
public PopParameters proofOfPossession()
scopes
public @NonNull Set
Scopes application is requesting access to
tenant
public String tenant()
Overrides the tenant value in the authority URL for this request
username
public @NonNull String username()
Username of the account