UserNamePasswordParameters.UserNamePasswordParametersBuilder Class
- java.
lang. Object - com.
microsoft. aad. msal4j. UserNamePasswordParameters. UserNamePasswordParametersBuilder
- com.
public static class UserNamePasswordParameters.UserNamePasswordParametersBuilder
Method Summary
Methods inherited from java.lang.Object
Method Details
build
public UserNamePasswordParameters build()
claims
public UserNamePasswordParameters.UserNamePasswordParametersBuilder claims(ClaimsRequest claims)
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
Parameters:
Returns:
this
.extraHttpHeaders
public UserNamePasswordParameters.UserNamePasswordParametersBuilder extraHttpHeaders(Map
Adds additional headers to the token request
Parameters:
Returns:
this
.extraQueryParameters
public UserNamePasswordParameters.UserNamePasswordParametersBuilder extraQueryParameters(Map
Adds additional query parameters to the token request
Parameters:
Returns:
this
.password
public UserNamePasswordParameters.UserNamePasswordParametersBuilder password(char[] password)
Parameters:
proofOfPossession
public UserNamePasswordParameters.UserNamePasswordParametersBuilder proofOfPossession(HttpMethod httpMethod, URI uri, String nonce)
Sets the PopParameters for this request, allowing the request to retrieve proof-of-possession tokens rather than bearer tokens For more information, see PopParameters and https://aka.ms/msal4j-pop
Parameters:
scopes
public UserNamePasswordParameters.UserNamePasswordParametersBuilder scopes(@NonNull Set
Scopes application is requesting access to
Parameters:
Returns:
this
.tenant
public UserNamePasswordParameters.UserNamePasswordParametersBuilder tenant(String tenant)
Overrides the tenant value in the authority URL for this request
Parameters:
Returns:
this
.toString
public String toString()
Overrides:
UserNamePasswordParameters.UserNamePasswordParametersBuilder.toString()username
public UserNamePasswordParameters.UserNamePasswordParametersBuilder username(@NonNull String username)
Username of the account
Parameters:
Returns:
this
.