AuthorizationCodeParameters Class
- java.
lang. Object - com.
microsoft. aad. msal4j. AuthorizationCodeParameters
- com.
Implements
public class AuthorizationCodeParameters
implements com.microsoft.aad.msal4j.IAcquireTokenParameters
Object containing parameters for authorization code flow. Can be used as parameter to PublicClientApplication#acquireToken(AuthorizationCodeParameters) or to ConfidentialClientApplication#acquireToken(AuthorizationCodeParameters)
Method Summary
Modifier and Type | Method and Description |
---|---|
@lombok.NonNull java.lang.String |
authorizationCode()
Authorization code acquired in the first step of OAuth2.0 authorization code flow. |
static
Authorization |
builder(String authorizationCode, URI redirectUri)
Builder for AuthorizationCodeParameters |
Claims |
claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims |
java.lang.String |
codeVerifier()
Code verifier used for PKCE. |
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 |
@lombok.NonNull java.net.URI |
redirectUri()
Redirect URI registered in the Azure portal, and which was used in the first step of OAuth2.0 authorization code flow. |
java.util.Set<java.lang.String> |
scopes()
Scopes to which the application is requesting access |
java.lang.String |
tenant()
Overrides the tenant value in the authority URL for this request |
Methods inherited from java.lang.Object
Method Details
authorizationCode
public @NonNull String authorizationCode()
Authorization code acquired in the first step of OAuth2.0 authorization code flow. For more details, see https://aka.ms/msal4j-authorization-code-flow
builder
public static AuthorizationCodeParameters.AuthorizationCodeParametersBuilder builder(String authorizationCode, URI redirectUri)
Builder for AuthorizationCodeParameters
Parameters:
Returns:
claims
public ClaimsRequest claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
codeVerifier
public String codeVerifier()
Code verifier used for PKCE. For more details, see https://tools.ietf.org/html/rfc7636
extraHttpHeaders
public Map
Adds additional headers to the token request
extraQueryParameters
public Map
Adds additional query parameters to the token request
redirectUri
public @NonNull URI redirectUri()
Redirect URI registered in the Azure portal, and which was used in the first step of OAuth2.0 authorization code flow. For more details, see https://aka.ms/msal4j-authorization-code-flow
scopes
public Set
Scopes to which the application is requesting access
tenant
public String tenant()
Overrides the tenant value in the authority URL for this request